TCAGen2 java upgrade
[dcaegen2/analytics/tca-gen2.git] / eelf-logger / eelf-logger-api / src / main / java / org / onap / dcae / utils / eelf / logger / api / info / ErrorLogInfo.java
1 /*
2  * ================================================================================
3  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  * ============LICENSE_END=========================================================
17  *
18  */
19
20 package org.onap.dcae.utils.eelf.logger.api.info;
21
22 /**
23  * Captures fields required to log error related information
24  *
25  * @author Rajiv Singla
26  */
27 public interface ErrorLogInfo extends LogInfo {
28
29
30     /**
31      * Required field contains an error code representing the error condition. The codes can be chose by
32      * the logging application but they should adhere to the guidelines embodied in the table below:
33      *
34      * <div style="display: flex">
35      *     <div style="border-left: 2px solid black; border-right: 2px solid black;">
36      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">Error Type</p>
37      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">100</p>
38      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">200</p>
39      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">300</p>
40      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">400</p>
41      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">500</p>
42      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;border-bottom: 2px solid black;">
43      *             900</p>
44      *     </div>
45      *     <div style="border-right: 2px solid black;">
46      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">Notes</p>
47      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">Permission errors</p>
48      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">Availability errors/Timeouts</p>
49      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">Data errors</p>
50      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">Schema errors</p>
51      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;">Business process errors</p>
52      *         <p style="margin: 0;padding: 0 1px 0;border-top: 2px solid black;border-bottom: 2px solid black;">
53      *             Unknown Errors</p>
54      *     </div>
55      * </div>
56      *
57      * @return error Code
58      */
59     Integer getErrorCode();
60
61
62     /**
63      * Required field contains a human readable description of the error condition.
64      *
65      * @return human readable description of the error condition
66      */
67     String getErrorDescription();
68
69 }