0afd9eea02a74e1c6e9135018ec7c3f4f814b414
[music.git] / src / main / java / org / onap / music / eelf / logging / format / ErrorCodes.java
1 /*
2  * ============LICENSE_START==========================================
3  * org.onap.music
4  * ===================================================================
5  *  Copyright (c) 2017 AT&T Intellectual Property
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  * 
19  * ============LICENSE_END=============================================
20  * ====================================================================
21  */
22
23 package org.onap.music.eelf.logging.format;
24
25
26
27 /**
28  * @author inam
29  *
30  */
31 public enum ErrorCodes {
32     
33     
34     /*
35      * 100-199 Security/Permission Related - Authentication problems
36      * [ERR100E] Missing Information 
37      * [ERR101E] Authentication error occured
38      * 
39      * 200-299 Availability/Timeout Related/IO - connectivity error - connection timeout
40      *  [ERR200E] Connectivity
41      *  [ERR201E] Host not available 
42      *     [ERR202E] Error while connecting to Cassandra cluster
43      *  [ERR203E] IO Error has occured
44      *  [ERR204E] Execution Interrupted
45      *     [ERR205E] Session Expired
46      *  [ERR206E] Cache not authenticated
47      * 
48      * 
49      * 300-399 Data Access/Integrity Related  
50      * 
51      * 400-499 - Cassandra Query Related
52      * [ERR400E] Error while processing prepared query object
53      * [ERR401E] Executing Session Failure for Request
54      * [ERR402E] Ill formed queryObject for the request
55      * [ERR403E] Error processing Prepared Query Object  
56      * 
57      * 500-599 - Zookeepr/Locking Related
58      * [ERR500E] Invalid lock
59      * [ERR501E] Locking Error has occured
60      * [ERR502E] Zookeeper error has occured
61      * [ERR503E] Failed to aquire lock store handle  
62      * [ERR504E] Failed to create Lock Reference
63      * [ERR505E] Lock does not exist
64      * [ERR506E] Failed to aquire lock
65      * [ERR507E] Lock not aquired 
66      * [ERR508E] Lock state not set 
67      * [ERR509E] Lock not destroyed 
68      * [ERR510E] Lock not released 
69      * [ERR511E] Lock not deleted 
70      * [ERR512E] Failed to get ZK Lock Handle
71      * 
72      * 
73      * 600 - 699 - Music Service Errors
74      * [ERR600E] Error initializing the cache 
75      * 
76      * 700-799 Schema Interface Type/Validation - received Pay-load checksum is
77      * invalid - received JSON is not valid
78      * 
79      * 800-899 Business/Flow Processing Related - check out to service is not
80      * allowed - Roll-back is done - failed to generate heat file
81      * 
82      * 
83      * 900-999 Unknown Errors - Unexpected exception
84      * [ERR900E] Unexpected error occured
85      * [ERR901E] Number format exception  
86      * 
87      * 
88      * 1000-1099 Reserved - do not use
89      * 
90      */
91     
92     /*SUCCESS("Success"), FAILURE("Failure");
93
94     private String result;
95
96     ResultType(String result) {
97         this.result = result;
98     }
99
100     public String getResult() {
101         return result;
102     }
103 */
104     
105     
106
107 }