2 * ============LICENSE_START==========================================
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
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.
19 * ============LICENSE_END=============================================
20 * ====================================================================
22 package org.onap.music.eelf.logging.format;
30 public enum ErrorCodes {
34 * 100-199 Security/Permission Related - Authentication problems
35 * [ERR100E] Missing Information
36 * [ERR101E] Authentication error occured
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
48 * 300-399 Data Access/Integrity Related
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
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
72 * 600 - 699 - Music Service Errors
73 * [ERR600E] Error initializing the cache
75 * 700-799 Schema Interface Type/Validation - received Pay-load checksum is
76 * invalid - received JSON is not valid
78 * 800-899 Business/Flow Processing Related - check out to service is not
79 * allowed - Roll-back is done - failed to generate heat file
82 * 900-999 Unknown Errors - Unexpected exception
83 * [ERR900E] Unexpected error occured
84 * [ERR901E] Number format exception
87 * 1000-1099 Reserved - do not use
91 /*SUCCESS("Success"), FAILURE("Failure");
93 private String result;
95 ResultType(String result) {
99 public String getResult() {