aboutsummaryrefslogtreecommitdiffstats
path: root/ECOMP-XACML/src/main/java/org/openecomp/policy/xacml/api/XACMLErrorConstants.java
blob: 5a2eac109a4e50d07b7bf1a2031d1d725c334810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*-
 * ============LICENSE_START=======================================================
 * ECOMP-XACML
 * ================================================================================
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */
package org.openecomp.policy.xacml.api;

/**
 * List of Error Classifications
 *  PE100 - Permissions
 *  PE200 - System Error (such as availability, timeout, configuration, etc...)
 *  PE300 - Data Issue( such as request for REST/JSON )
 *  PE400 - Schema validation
 *  PE500 - Process Flow issues
 *  PE900 - Default/Unknown Errors
 *  
 *
 */
public class XACMLErrorConstants {
	//Captures all the errors related to Authentication, Authorizations and Permissions in the PolicyEngine Process
	public static final String ERROR_PERMISSIONS = "PE100 - Permissions Error: ";
	
	//Captures all the errors related to availability, timeout configuration variables, etc... in the PolicyEngine
	public static final String ERROR_SYSTEM_ERROR = "PE200 - System Error: ";
	
	/*
	 * Captures all the errors related to configuration values from properties files and data from the interfacing System
	 * like REST/JSON values 
	*/
	public static final String ERROR_DATA_ISSUE = "PE300 - Data Issue: ";
	
	//Captures all the errors related to the XML schemas and/or REST/JSON structures 
	public static final String ERROR_SCHEMA_INVALID = "PE400 - Schema validation Error: ";
	
	//Captures all the errors related to the Process, when data from one Process to another Process does not flow
	public static final String ERROR_PROCESS_FLOW = "PE500 - Process Flow Issue: ";
	
	//Captures all the errors that not related to the list of above error codes
	public static final String ERROR_UNKNOWN = "PE900 - Unknown Error: ";
	

}