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