Catalog alignment
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / common / config / EcompErrorEnum.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.common.config;
22
23 public enum EcompErrorEnum {
24
25
26     BeUebAuthenticationError(EcompErrorCode.E_100, ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.MAJOR,
27             EcompClassification.ERROR),
28
29
30     DmaapHealthCheckError(EcompErrorCode.E_214, ErrorType.CONNECTION_PROBLEM, AlarmSeverity.MAJOR,
31             EcompClassification.ERROR),
32
33         SessionExpiredAuthenticationError(EcompErrorCode.E_220, ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.MAJOR,
34                         EcompClassification.ERROR),
35
36     InternalAuthenticationInfo(EcompErrorCode.E_199, ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.INFORMATIONAL,
37             EcompClassification.INFORMATION), InternalAuthenticationWarning(EcompErrorCode.E_199,
38             ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.MINOR,
39             EcompClassification.WARNING), InternalAuthenticationError(EcompErrorCode.E_199,
40             ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.MAJOR,
41             EcompClassification.ERROR), InternalAuthenticationFatal(EcompErrorCode.E_199,
42             ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.CRITICAL,
43             EcompClassification.FATAL),
44
45     BeHealthCheckRecovery(EcompErrorCode.E_205, ErrorType.RECOVERY, AlarmSeverity.INFORMATIONAL,
46             EcompClassification.INFORMATION, null), BeHealthCheckJanusGraphRecovery(EcompErrorCode.E_206, ErrorType.RECOVERY,
47             AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION,
48             null), BeHealthCheckUebClusterRecovery(EcompErrorCode.E_208, ErrorType.RECOVERY,
49             AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION,
50             null), FeHealthCheckRecovery(EcompErrorCode.E_209, ErrorType.RECOVERY,
51             AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION,
52             null), DmaapHealthCheckRecovery(EcompErrorCode.E_210, ErrorType.RECOVERY,
53             AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION,
54             null), BeHealthCheckError(EcompErrorCode.E_200, ErrorType.SYSTEM_ERROR,
55             AlarmSeverity.CRITICAL, EcompClassification.ERROR,
56             BeHealthCheckRecovery),
57
58     BeHealthCheckJanusGraphError(EcompErrorCode.E_201, ErrorType.SYSTEM_ERROR, AlarmSeverity.CRITICAL,
59             EcompClassification.ERROR, BeHealthCheckJanusGraphRecovery),
60             BeHealthCheckUebClusterError(EcompErrorCode.E_203,
61             ErrorType.SYSTEM_ERROR, AlarmSeverity.CRITICAL, EcompClassification.ERROR,
62             BeHealthCheckUebClusterRecovery), FeHealthCheckError(EcompErrorCode.E_204,
63             ErrorType.SYSTEM_ERROR, AlarmSeverity.CRITICAL, EcompClassification.ERROR,
64             FeHealthCheckRecovery), BeUebConnectionError(EcompErrorCode.E_210,
65             ErrorType.CONNECTION_PROBLEM, AlarmSeverity.MAJOR,
66             EcompClassification.ERROR), BeUebUnkownHostError(EcompErrorCode.E_211,
67             ErrorType.CONNECTION_PROBLEM, AlarmSeverity.MAJOR,
68             EcompClassification.ERROR),
69
70     FqdnResolveError(EcompErrorCode.E_212, ErrorType.CONNECTION_PROBLEM, AlarmSeverity.MAJOR,
71             EcompClassification.ERROR), SiteSwitchoverInfo(EcompErrorCode.E_213, ErrorType.RECOVERY,
72             AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION),
73
74     InternalConnectionInfo(EcompErrorCode.E_299, ErrorType.CONNECTION_PROBLEM, AlarmSeverity.INFORMATIONAL,
75             EcompClassification.INFORMATION), InternalConnectionWarning(EcompErrorCode.E_299,
76             ErrorType.CONNECTION_PROBLEM, AlarmSeverity.MINOR,
77             EcompClassification.WARNING), InternalConnectionError(EcompErrorCode.E_299,
78             ErrorType.CONNECTION_PROBLEM, AlarmSeverity.MAJOR,
79             EcompClassification.ERROR), InternalConnectionFatal(EcompErrorCode.E_299,
80             ErrorType.CONNECTION_PROBLEM, AlarmSeverity.CRITICAL, EcompClassification.FATAL),
81
82     BeComponentMissingError(EcompErrorCode.E_300, ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR,
83             EcompClassification.ERROR), BeIncorrectComponentError(EcompErrorCode.E_301, ErrorType.SYSTEM_ERROR,
84             AlarmSeverity.MAJOR, EcompClassification.ERROR), BeInvalidConfigurationError(EcompErrorCode.E_302,
85             ErrorType.CONFIG_ERROR, AlarmSeverity.MAJOR,
86             EcompClassification.FATAL), BeUebObjectNotFoundError(EcompErrorCode.E_303,
87             ErrorType.DATA_ERROR, AlarmSeverity.MAJOR,
88             EcompClassification.ERROR), BeDistributionEngineInvalidArtifactType(
89             EcompErrorCode.E_304, ErrorType.DATA_ERROR, AlarmSeverity.MAJOR,
90             EcompClassification.WARNING), BeMissingConfigurationError(
91             EcompErrorCode.E_305, ErrorType.CONFIG_ERROR, AlarmSeverity.MAJOR,
92             EcompClassification.FATAL), BeConfigurationInvalidListSizeError(
93             EcompErrorCode.E_306, ErrorType.CONFIG_ERROR,
94             AlarmSeverity.MAJOR,
95             EcompClassification.FATAL), ErrorConfigFileFormat(
96             EcompErrorCode.E_307, ErrorType.CONFIG_ERROR,
97             AlarmSeverity.MAJOR,
98             EcompClassification.ERROR), BeMissingArtifactInformationError(
99             EcompErrorCode.E_308, ErrorType.DATA_ERROR,
100             AlarmSeverity.MAJOR,
101             EcompClassification.ERROR), BeArtifactMissingError(
102             EcompErrorCode.E_309,
103             ErrorType.DATA_ERROR,
104             AlarmSeverity.MAJOR,
105             EcompClassification.ERROR), BeUserMissingError(
106             EcompErrorCode.E_310,
107             ErrorType.DATA_ERROR,
108             AlarmSeverity.MAJOR,
109             EcompClassification.ERROR), EcompMismatchParam(
110             EcompErrorCode.E_311,
111             ErrorType.CONFIG_ERROR,
112             AlarmSeverity.MAJOR,
113             EcompClassification.ERROR), EcompMissingError(
114             EcompErrorCode.E_312,
115             ErrorType.CONFIG_ERROR,
116             AlarmSeverity.MAJOR,
117             EcompClassification.ERROR),
118
119     InternalDataInfo(EcompErrorCode.E_399, ErrorType.DATA_ERROR, AlarmSeverity.INFORMATIONAL,
120             EcompClassification.INFORMATION), InternalDataWarning(EcompErrorCode.E_399, ErrorType.DATA_ERROR,
121             AlarmSeverity.MINOR, EcompClassification.WARNING), InternalDataError(EcompErrorCode.E_399,
122             ErrorType.DATA_ERROR, AlarmSeverity.MAJOR,
123             EcompClassification.ERROR), InternalDataFatal(EcompErrorCode.E_399, ErrorType.DATA_ERROR,
124             AlarmSeverity.CRITICAL, EcompClassification.FATAL),
125
126     BeInvalidTypeError(EcompErrorCode.E_400, ErrorType.DATA_ERROR, AlarmSeverity.MAJOR,
127             EcompClassification.WARNING), BeInvalidValueError(EcompErrorCode.E_401, ErrorType.DATA_ERROR,
128             AlarmSeverity.MAJOR, EcompClassification.WARNING), BeArtifactPayloadInvalid(EcompErrorCode.E_402,
129             ErrorType.DATA_ERROR, AlarmSeverity.MAJOR,
130             EcompClassification.ERROR), BeArtifactInformationInvalidError(EcompErrorCode.E_403,
131             ErrorType.DATA_ERROR, AlarmSeverity.MAJOR,
132             EcompClassification.ERROR), BeGraphObjectMissingError(EcompErrorCode.E_404,
133             ErrorType.DATA_ERROR, AlarmSeverity.CRITICAL,
134             EcompClassification.ERROR), BeInvalidJsonInput(EcompErrorCode.E_405,
135             ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR,
136             EcompClassification.ERROR), BeDistributionMissingError(
137             EcompErrorCode.E_406, ErrorType.DATA_ERROR,
138             AlarmSeverity.MAJOR, EcompClassification.ERROR),
139
140     InvalidInputInfo(EcompErrorCode.E_499, ErrorType.SYSTEM_ERROR, AlarmSeverity.INFORMATIONAL,
141             EcompClassification.INFORMATION), InvalidInputWarning(EcompErrorCode.E_499, ErrorType.SYSTEM_ERROR,
142             AlarmSeverity.MINOR, EcompClassification.WARNING), InvalidInputError(EcompErrorCode.E_499,
143             ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR,
144             EcompClassification.ERROR), InvalidInputFatal(EcompErrorCode.E_499, ErrorType.SYSTEM_ERROR,
145             AlarmSeverity.CRITICAL, EcompClassification.FATAL),
146
147     BeInitializationError(EcompErrorCode.E_500, ErrorType.SYSTEM_ERROR, AlarmSeverity.CRITICAL,
148             EcompClassification.ERROR), BeFailedAddingResourceInstanceError(EcompErrorCode.E_501,
149             ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR, EcompClassification.ERROR), BeUebSystemError(
150             EcompErrorCode.E_502, ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR,
151             EcompClassification.ERROR), BeDistributionEngineSystemError(EcompErrorCode.E_503,
152             ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR,
153             EcompClassification.ERROR), BeFailedAddingNodeTypeError(EcompErrorCode.E_504,
154             ErrorType.DATA_ERROR, AlarmSeverity.CRITICAL,
155             EcompClassification.ERROR), BeDaoSystemError(EcompErrorCode.E_505,
156             ErrorType.SYSTEM_ERROR, AlarmSeverity.CRITICAL,
157             EcompClassification.ERROR), BeSystemError(EcompErrorCode.E_506,
158             ErrorType.SYSTEM_ERROR, AlarmSeverity.CRITICAL,
159             EcompClassification.ERROR), BeExecuteRollbackError(
160             EcompErrorCode.E_507, ErrorType.DATA_ERROR,
161             AlarmSeverity.MAJOR,
162             EcompClassification.ERROR), BeFailedLockObjectError(
163             EcompErrorCode.E_508,
164             ErrorType.SYSTEM_ERROR,
165             AlarmSeverity.CRITICAL,
166             EcompClassification.WARNING), BeFailedCreateNodeError(
167             EcompErrorCode.E_509,
168             ErrorType.DATA_ERROR,
169             AlarmSeverity.MAJOR,
170             EcompClassification.ERROR), BeFailedUpdateNodeError(
171             EcompErrorCode.E_510,
172             ErrorType.DATA_ERROR,
173             AlarmSeverity.MAJOR,
174             EcompClassification.ERROR), BeFailedDeleteNodeError(
175             EcompErrorCode.E_511,
176             ErrorType.DATA_ERROR,
177             AlarmSeverity.MAJOR,
178             EcompClassification.ERROR), BeFailedRetrieveNodeError(
179             EcompErrorCode.E_512,
180             ErrorType.DATA_ERROR,
181             AlarmSeverity.MAJOR,
182             EcompClassification.ERROR), BeFailedFindParentError(
183             EcompErrorCode.E_513,
184             ErrorType.DATA_ERROR,
185             AlarmSeverity.MAJOR,
186             EcompClassification.ERROR), BeFailedFindAllNodesError(
187             EcompErrorCode.E_514,
188             ErrorType.DATA_ERROR,
189             AlarmSeverity.MAJOR,
190             EcompClassification.ERROR), BeFailedFindAssociationError(
191             EcompErrorCode.E_515,
192             ErrorType.DATA_ERROR,
193             AlarmSeverity.MAJOR,
194             EcompClassification.ERROR), BeComponentCleanerSystemError(
195             EcompErrorCode.E_516,
196             ErrorType.SYSTEM_ERROR,
197             AlarmSeverity.MAJOR,
198             EcompClassification.ERROR), FeHttpLoggingError(
199             EcompErrorCode.E_517,
200             ErrorType.SYSTEM_ERROR,
201             AlarmSeverity.MINOR,
202             EcompClassification.ERROR), FePortalServletError(
203             EcompErrorCode.E_518,
204             ErrorType.SYSTEM_ERROR,
205             AlarmSeverity.MAJOR,
206             EcompClassification.ERROR),
207
208     InternalFlowInfo(EcompErrorCode.E_599, ErrorType.SYSTEM_ERROR, AlarmSeverity.INFORMATIONAL,
209             EcompClassification.INFORMATION), InternalFlowWarning(EcompErrorCode.E_599, ErrorType.SYSTEM_ERROR,
210             AlarmSeverity.MINOR, EcompClassification.WARNING), InternalFlowError(EcompErrorCode.E_599,
211             ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR,
212             EcompClassification.ERROR), InternalFlowFatal(EcompErrorCode.E_599, ErrorType.SYSTEM_ERROR,
213             AlarmSeverity.CRITICAL, EcompClassification.FATAL),
214
215     BeRestApiGeneralError(EcompErrorCode.E_900, ErrorType.SYSTEM_ERROR, AlarmSeverity.CRITICAL,
216             EcompClassification.ERROR, null), FeHealthCheckGeneralError(EcompErrorCode.E_901, ErrorType.SYSTEM_ERROR,
217             AlarmSeverity.CRITICAL, EcompClassification.ERROR, null),
218
219     InternalUnexpectedInfo(EcompErrorCode.E_999, ErrorType.SYSTEM_ERROR, AlarmSeverity.INFORMATIONAL,
220             EcompClassification.INFORMATION), InternalUnexpectedWarning(EcompErrorCode.E_999, ErrorType.SYSTEM_ERROR,
221             AlarmSeverity.MINOR, EcompClassification.WARNING), InternalUnexpectedError(EcompErrorCode.E_999,
222             ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR,
223             EcompClassification.ERROR), InternalUnexpectedFatal(EcompErrorCode.E_999,
224             ErrorType.SYSTEM_ERROR, AlarmSeverity.CRITICAL, EcompClassification.FATAL),
225
226     /*
227      * BeUebAuthenticationError(EcompErrorCode.E_100,
228      * ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.MAJOR,
229      * EcompClassification.ERROR),
230      *
231      * InternalAuthenticationInfo(EcompErrorCode.E_199,
232      * ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.INFORMATIONAL,
233      * EcompClassification.INFORMATION),
234      * InternalAuthenticationWarning(EcompErrorCode.E_199,
235      * ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.MINOR,
236      * EcompClassification.WARNING),
237      * InternalAuthenticationError(EcompErrorCode.E_199,
238      * ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.MAJOR,
239      * EcompClassification.ERROR),
240      * InternalAuthenticationFatal(EcompErrorCode.E_199,
241      * ErrorType.AUTHENTICATION_PROBLEM, AlarmSeverity.CRITICAL,
242      * EcompClassification.FATAL),
243      * //BeFailedDeletingResourceInstanceError(EcompErrorCode.E_200,
244      * ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR, Classification.ERROR),
245      *
246      * BeHealthCheckRecovery(EcompErrorCode.E_205, ErrorType.RECOVERY,
247      * AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION, null),
248      * BeHealthCheckJanusGraphRecovery(EcompErrorCode.E_206, ErrorType.RECOVERY,
249      * AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION, null),
250      * BeHealthCheckElasticSearchRecovery(EcompErrorCode.E_207,
251      * ErrorType.RECOVERY, AlarmSeverity.INFORMATIONAL,
252      * EcompClassification.INFORMATION, null),
253      * BeHealthCheckUebClusterRecovery(EcompErrorCode.E_208, ErrorType.RECOVERY,
254      * AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION, null),
255      * FeHealthCheckRecovery(EcompErrorCode.E_209, ErrorType.RECOVERY,
256      * AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION, null),
257      * BeHealthCheckError(EcompErrorCode.E_200, ErrorType.SYSTEM_ERROR,
258      * AlarmSeverity.CRITICAL, EcompClassification.ERROR,
259      * BeHealthCheckRecovery),
260      *
261      * BeHealthCheckJanusGraphError(EcompErrorCode.E_201, ErrorType.SYSTEM_ERROR,
262      * AlarmSeverity.CRITICAL, EcompClassification.ERROR,
263      * BeHealthCheckJanusGraphRecovery),
264      * BeHealthCheckElasticSearchError(EcompErrorCode.E_202,
265      * ErrorType.SYSTEM_ERROR, AlarmSeverity.CRITICAL,
266      * EcompClassification.ERROR, BeHealthCheckElasticSearchRecovery),
267      * BeHealthCheckUebClusterError(EcompErrorCode.E_203,
268      * ErrorType.SYSTEM_ERROR, AlarmSeverity.CRITICAL,
269      * EcompClassification.ERROR, BeHealthCheckUebClusterRecovery),
270      * FeHealthCheckError(EcompErrorCode.E_204, ErrorType.SYSTEM_ERROR,
271      * AlarmSeverity.CRITICAL, EcompClassification.ERROR,
272      * FeHealthCheckRecovery), BeUebConnectionError(EcompErrorCode.E_210,
273      * ErrorType.CONNECTION_PROBLEM, AlarmSeverity.MAJOR,
274      * EcompClassification.ERROR), BeUebUnkownHostError(EcompErrorCode.E_211,
275      * ErrorType.CONNECTION_PROBLEM, AlarmSeverity.MAJOR,
276      * EcompClassification.ERROR),
277      *
278      * InternalConnectionInfo(EcompErrorCode.E_299,
279      * ErrorType.CONNECTION_PROBLEM, AlarmSeverity.INFORMATIONAL,
280      * EcompClassification.INFORMATION),
281      * InternalConnectionWarning(EcompErrorCode.E_299,
282      * ErrorType.CONNECTION_PROBLEM, AlarmSeverity.MINOR,
283      * EcompClassification.WARNING),
284      * InternalConnectionError(EcompErrorCode.E_299,
285      * ErrorType.CONNECTION_PROBLEM, AlarmSeverity.MAJOR,
286      * EcompClassification.ERROR), InternalConnectionFatal(EcompErrorCode.E_299,
287      * ErrorType.CONNECTION_PROBLEM, AlarmSeverity.CRITICAL,
288      * EcompClassification.FATAL),
289      *
290      * BeComponentMissingError(EcompErrorCode.E_300, ErrorType.SYSTEM_ERROR,
291      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
292      * BeIncorrectComponentError(EcompErrorCode.E_301, ErrorType.SYSTEM_ERROR,
293      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
294      * BeInvalidConfigurationError(EcompErrorCode.E_302, ErrorType.CONFIG_ERROR,
295      * AlarmSeverity.MAJOR, EcompClassification.FATAL),
296      * BeUebObjectNotFoundError(EcompErrorCode.E_303, ErrorType.DATA_ERROR,
297      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
298      * BeDistributionEngineInvalidArtifactType(EcompErrorCode.E_304,
299      * ErrorType.DATA_ERROR, AlarmSeverity.MAJOR, EcompClassification.WARNING),
300      * BeMissingConfigurationError(EcompErrorCode.E_305, ErrorType.CONFIG_ERROR,
301      * AlarmSeverity.MAJOR, EcompClassification.FATAL),
302      * BeConfigurationInvalidListSizeError(EcompErrorCode.E_306,
303      * ErrorType.CONFIG_ERROR, AlarmSeverity.MAJOR, EcompClassification.FATAL),
304      * ErrorConfigFileFormat(EcompErrorCode.E_307, ErrorType.CONFIG_ERROR,
305      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
306      * BeMissingArtifactInformationError(EcompErrorCode.E_308,
307      * ErrorType.DATA_ERROR, AlarmSeverity.MAJOR, EcompClassification.ERROR),
308      * BeArtifactMissingError(EcompErrorCode.E_309, ErrorType.DATA_ERROR,
309      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
310      * BeUserMissingError(EcompErrorCode.E_310, ErrorType.DATA_ERROR,
311      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
312      * EcompMismatchParam(EcompErrorCode.E_311, ErrorType.CONFIG_ERROR,
313      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
314      * EcompMissingError(EcompErrorCode.E_312, ErrorType.CONFIG_ERROR,
315      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
316      *
317      * InternalDataInfo(EcompErrorCode.E_399, ErrorType.DATA_ERROR,
318      * AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION),
319      * InternalDataWarning(EcompErrorCode.E_399, ErrorType.DATA_ERROR,
320      * AlarmSeverity.MINOR, EcompClassification.WARNING),
321      * InternalDataError(EcompErrorCode.E_399, ErrorType.DATA_ERROR,
322      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
323      * InternalDataFatal(EcompErrorCode.E_399, ErrorType.DATA_ERROR,
324      * AlarmSeverity.CRITICAL, EcompClassification.FATAL),
325      *
326      * BeInvalidTypeError(EcompErrorCode.E_400, ErrorType.DATA_ERROR,
327      * AlarmSeverity.MAJOR, EcompClassification.WARNING),
328      * BeInvalidValueError(EcompErrorCode.E_401, ErrorType.DATA_ERROR,
329      * AlarmSeverity.MAJOR, EcompClassification.WARNING),
330      * BeArtifactPayloadInvalid(EcompErrorCode.E_402, ErrorType.DATA_ERROR,
331      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
332      * BeArtifactInformationInvalidError(EcompErrorCode.E_403,
333      * ErrorType.DATA_ERROR, AlarmSeverity.MAJOR, EcompClassification.ERROR),
334      * BeDistributionMissingError(EcompErrorCode.E_404, ErrorType.DATA_ERROR,
335      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
336      * BeGraphObjectMissingError(EcompErrorCode.E_404, ErrorType.DATA_ERROR,
337      * AlarmSeverity.CRITICAL, EcompClassification.ERROR),
338      * BeInvalidJsonInput(EcompErrorCode.E_405, ErrorType.SYSTEM_ERROR,
339      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
340      *
341      * InvalidInputInfo(EcompErrorCode.E_499, ErrorType.SYSTEM_ERROR,
342      * AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION),
343      * InvalidInputWarning(EcompErrorCode.E_499, ErrorType.SYSTEM_ERROR,
344      * AlarmSeverity.MINOR, EcompClassification.WARNING),
345      * InvalidInputError(EcompErrorCode.E_499, ErrorType.SYSTEM_ERROR,
346      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
347      * InvalidInputFatal(EcompErrorCode.E_499, ErrorType.SYSTEM_ERROR,
348      * AlarmSeverity.CRITICAL, EcompClassification.FATAL),
349      *
350      * BeInitializationError(EcompErrorCode.E_500, ErrorType.SYSTEM_ERROR,
351      * AlarmSeverity.CRITICAL, EcompClassification.ERROR),
352      * BeFailedAddingResourceInstanceError(EcompErrorCode.E_501,
353      * ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR, EcompClassification.ERROR),
354      * BeUebSystemError(EcompErrorCode.E_502, ErrorType.SYSTEM_ERROR,
355      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
356      * BeDistributionEngineSystemError(EcompErrorCode.E_503,
357      * ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR, EcompClassification.ERROR),
358      * BeFailedAddingNodeTypeError(EcompErrorCode.E_504, ErrorType.DATA_ERROR,
359      * AlarmSeverity.CRITICAL, EcompClassification.ERROR),
360      * BeDaoSystemError(EcompErrorCode.E_505, ErrorType.SYSTEM_ERROR,
361      * AlarmSeverity.CRITICAL, EcompClassification.ERROR),
362      * BeSystemError(EcompErrorCode.E_506, ErrorType.SYSTEM_ERROR,
363      * AlarmSeverity.CRITICAL, EcompClassification.ERROR),
364      * BeExecuteRollbackError(EcompErrorCode.E_507, ErrorType.DATA_ERROR,
365      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
366      * BeFailedLockObjectError(EcompErrorCode.E_508, ErrorType.SYSTEM_ERROR,
367      * AlarmSeverity.CRITICAL, EcompClassification.WARNING),
368      * BeFailedCreateNodeError(EcompErrorCode.E_509, ErrorType.DATA_ERROR,
369      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
370      * BeFailedUpdateNodeError(EcompErrorCode.E_510, ErrorType.DATA_ERROR,
371      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
372      * BeFailedDeleteNodeError(EcompErrorCode.E_511, ErrorType.DATA_ERROR,
373      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
374      * BeFailedRetrieveNodeError(EcompErrorCode.E_512, ErrorType.DATA_ERROR,
375      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
376      * BeFailedFindParentError(EcompErrorCode.E_513, ErrorType.DATA_ERROR,
377      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
378      * BeFailedFindAllNodesError(EcompErrorCode.E_514, ErrorType.DATA_ERROR,
379      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
380      * BeFailedFindAssociationError(EcompErrorCode.E_515, ErrorType.DATA_ERROR,
381      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
382      * BeComponentCleanerSystemError(EcompErrorCode.E_516,
383      * ErrorType.SYSTEM_ERROR, AlarmSeverity.MAJOR, EcompClassification.ERROR),
384      * FeHttpLoggingError(EcompErrorCode.E_517, ErrorType.SYSTEM_ERROR,
385      * AlarmSeverity.MINOR, EcompClassification.ERROR),
386      * FePortalServletError(EcompErrorCode.E_518, ErrorType.SYSTEM_ERROR,
387      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
388      *
389      * InternalFlowInfo(EcompErrorCode.E_599, ErrorType.SYSTEM_ERROR,
390      * AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION),
391      * InternalFlowWarning(EcompErrorCode.E_599, ErrorType.SYSTEM_ERROR,
392      * AlarmSeverity.MINOR, EcompClassification.WARNING),
393      * InternalFlowError(EcompErrorCode.E_599, ErrorType.SYSTEM_ERROR,
394      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
395      * InternalFlowFatal(EcompErrorCode.E_599, ErrorType.SYSTEM_ERROR,
396      * AlarmSeverity.CRITICAL, EcompClassification.FATAL),
397      *
398      * BeRestApiGeneralError(EcompErrorCode.E_900, ErrorType.SYSTEM_ERROR,
399      * AlarmSeverity.CRITICAL, EcompClassification.ERROR, null),
400      * FeHealthCheckGeneralError(EcompErrorCode.E_901, ErrorType.SYSTEM_ERROR,
401      * AlarmSeverity.CRITICAL, EcompClassification.ERROR, null),
402      *
403      * InternalUnexpectedInfo(EcompErrorCode.E_999, ErrorType.SYSTEM_ERROR,
404      * AlarmSeverity.INFORMATIONAL, EcompClassification.INFORMATION),
405      * InternalUnexpectedWarning(EcompErrorCode.E_999, ErrorType.SYSTEM_ERROR,
406      * AlarmSeverity.MINOR, EcompClassification.WARNING),
407      * InternalUnexpectedError(EcompErrorCode.E_999, ErrorType.SYSTEM_ERROR,
408      * AlarmSeverity.MAJOR, EcompClassification.ERROR),
409      * InternalUnexpectedFatal(EcompErrorCode.E_999, ErrorType.SYSTEM_ERROR,
410      * AlarmSeverity.CRITICAL, EcompClassification.FATAL),
411      */;
412
413         ;
414
415         EcompErrorCode ecompErrorCode;
416         ErrorType eType;
417         AlarmSeverity alarmSeverity;
418         EcompClassification classification;
419         EcompErrorEnum clearCode;
420
421     EcompErrorEnum(EcompErrorCode ecompErrorCode, ErrorType eType, AlarmSeverity alarmSeverity,
422                    EcompClassification classification, EcompErrorEnum clearCode) {
423
424         this.ecompErrorCode = ecompErrorCode;
425         this.eType = eType;
426         this.alarmSeverity = alarmSeverity;
427         this.classification = classification;
428         this.clearCode = clearCode;
429     }
430
431     EcompErrorEnum(EcompErrorCode ecompErrorCode, ErrorType eType, AlarmSeverity alarmSeverity,
432                    EcompClassification classification) {
433
434         this.ecompErrorCode = ecompErrorCode;
435         this.eType = eType;
436         this.alarmSeverity = alarmSeverity;
437         this.classification = classification;
438     }
439
440     public ErrorType geteType() {
441         return eType;
442     }
443
444     public void seteType(ErrorType eType) {
445         this.eType = eType;
446     }
447
448     public AlarmSeverity getAlarmSeverity() {
449         return alarmSeverity;
450     }
451
452     public void setAlarmSeverity(AlarmSeverity alarmSeverity) {
453         this.alarmSeverity = alarmSeverity;
454     }
455
456     public EcompErrorCode getEcompErrorCode() {
457         return ecompErrorCode;
458     }
459
460     public void setEcompErrorCode(EcompErrorCode ecompErrorCode) {
461         this.ecompErrorCode = ecompErrorCode;
462     }
463
464     public EcompClassification getClassification() {
465         return classification;
466     }
467
468     public void setClassification(EcompClassification classification) {
469         this.classification = classification;
470     }
471
472     public EcompErrorEnum getClearCode() {
473         return clearCode;
474     }
475
476     public void setClearCode(EcompErrorEnum clearCode) {
477         this.clearCode = clearCode;
478     }
479
480     public enum ErrorType {
481         RECOVERY, CONFIG_ERROR, SYSTEM_ERROR, DATA_ERROR, CONNECTION_PROBLEM, AUTHENTICATION_PROBLEM
482     }
483
484     public enum AlarmSeverity {
485         CRITICAL, MAJOR, MINOR, INFORMATIONAL, NONE
486     }
487
488     // public String toString() {
489     // return eType + "," + eCode + "," + desc;
490     // }
491 }