2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 package org.onap.policy.xacml.api;
23 * List of Error Classifications
25 * PE200 - System Error (such as availability, timeout, configuration, etc...)
26 * PE300 - Data Issue( such as request for REST/JSON )
27 * PE400 - Schema validation
28 * PE500 - Process Flow issues
29 * PE900 - Default/Unknown Errors
33 public class XACMLErrorConstants {
34 //Captures all the errors related to Authentication, Authorizations and Permissions in the PolicyEngine Process
35 public static final String ERROR_PERMISSIONS = "PE100 - Permissions Error: ";
37 //Captures all the errors related to availability, timeout configuration variables, etc... in the PolicyEngine
38 public static final String ERROR_SYSTEM_ERROR = "PE200 - System Error: ";
41 * Captures all the errors related to configuration values from properties files and data from the interfacing System
42 * like REST/JSON values
44 public static final String ERROR_DATA_ISSUE = "PE300 - Data Issue: ";
46 //Captures all the errors related to the XML schemas and/or REST/JSON structures
47 public static final String ERROR_SCHEMA_INVALID = "PE400 - Schema validation Error: ";
49 //Captures all the errors related to the Process, when data from one Process to another Process does not flow
50 public static final String ERROR_PROCESS_FLOW = "PE500 - Process Flow Issue: ";
52 //Captures all the errors that not related to the list of above error codes
53 public static final String ERROR_UNKNOWN = "PE900 - Unknown Error: ";
55 // Static class, hide constructor
56 private XACMLErrorConstants() {