0cbba2f192abeb99106a61e4134c66a986b71483
[policy/engine.git] / ONAP-XACML / src / main / java / org / onap / policy / xacml / api / XACMLErrorConstants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP-XACML
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20 package org.onap.policy.xacml.api;
21
22 /**
23  * List of Error Classifications
24  *  PE100 - Permissions
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
30  *  
31  *
32  */
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: ";
36         
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: ";
39         
40         /*
41          * Captures all the errors related to configuration values from properties files and data from the interfacing System
42          * like REST/JSON values 
43         */
44         public static final String ERROR_DATA_ISSUE = "PE300 - Data Issue: ";
45         
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: ";
48         
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: ";
51         
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: ";
54         
55         // Static class, hide constructor
56     private XACMLErrorConstants() {
57         super();
58     }
59
60 }