[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / lib / openecomp-logging-lib / openecomp-sdc-logging-api / src / main / java / org / openecomp / sdc / logging / types / LoggerErrorDescription.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.logging.types;
22
23
24 public class LoggerErrorDescription {
25   public static final String ARTIFACT_NOT_REFERENCED = "Artifact not referenced";
26   public static final String WRONG_FILE_EXTENSION = "Wrong file extention";
27   public static final String INVALID_HEAT_FORMAT = "Invalid HEAT format";
28   public static final String PARAMETER_NOT_FOUND = "Referenced parameter not found";
29   public static final String ENV_PARAMETER_NOT_IN_HEAT = "env includes parameter not in HEAT";
30   public static final String PARAMETER_DEFAULT_VALUE_NOT_ALIGNED_WITH_TYPE =
31       "Parameter default value not alinged with type";
32   public static final String INVALID_RESOURCE_TYPE = "Invalid resource type";
33   public static final String INVALID_GET_RESOURCE_SYNTAX = "Invalid get resource syntax";
34   public static final String RESOURCE_NOT_FOUND = "Resource not found";
35   public static final String INVALID_INDEX_VAR = "Invalid Resource Group index var";
36   public static final String MISSING_FILE = "Missing file";
37   public static final String MISSING_NOVA_PROPERTIES = "Missing NOVA server properties";
38   public static final String NESTED_LOOP = "Found nested loop";
39   public static final String MISSING_PARAMETER_IN_NESTED = "Missing parameter in nested file";
40   public static final String WRONG_VALUE_ASSIGNED_NESTED_PARAMETER =
41       "Wrong value assigned in nested parameters";
42   public static final String SERVER_NOT_DEFINED_NOVA = "Server not defined from nova";
43   public static final String WRONG_POLICY_SERVER_GROUP = "Wrong policy in server group";
44   public static final String SERVER_GROUP_SECURITY_GROUP_NOT_IN_USE =
45       "Server group or security group is not in use";
46   public static final String NETWORK_ATTACH_POLICY_NOT_IN_USE =
47       "Network Attach Policy is not in use";
48   public static final String NO_BIND_FROM_PORT_TO_NOVA = "No bind from port to nova sever";
49   public static final String PORT_BINDS_MORE_THAN_ONE_NOVA =
50       "Port binds to more than one nova sever";
51   public static final String MISSING_RESOURCE_DEPENDS_ON = "Missing resource in depends_on";
52   public static final String GET_ATTR_NOT_FOUND = "get_attr not found";
53   public static final String MISSING_GET_PARAM = "Missing get_param";
54   public static final String EMPTY_FILE = "Empty file";
55   public static final String VALIDATE_FILE = "Can't validate file";
56   public static final String INVALID_FILE_TYPE = "Invalid file type";
57   public static final String INVALID_ZIP = "Invalid zip file";
58   public static final String INVALID_VES_FILE = "Invalid VES file";
59
60
61
62   public static final String RESOURCE_UNIQUE_NETWORK_ROLE =
63       "Resource connects to two networks with the same role";
64   public static final String NAME_NOT_ALIGNED_WITH_GUIDELINES = "Name not aligned with guidelines";
65   public static final String VOLUME_FILE_NOT_EXPOSED = "Volume file not exposed";
66   public static final String RESOURCE_NOT_DEFINED_AS_OUTPUT = "Resource is not defined as output";
67   public static final String FLOATING_IP_IN_USE = "Floating IP resource type is in use";
68   public static final String MISSING_BASE_HEAT = "Missing base HEAT file";
69   public static final String MULTI_BASE_HEAT = "Multi base HEAT file";
70
71   public static final String EXTRACT_COMPOSITION_DATA = "Can't extract composition data";
72
73   public static final String MERGE_CONTRAIL_2_AND_3 =
74       "Merge of Contrail 2 and Contrail 3 resources";
75   public static final String CONTRAIL_2_IN_USE = "Contrail 2 resource is in use";
76
77   public static final String INVALID_MANIFEST = "Invalid manifest file";
78
79   public static final String INVALID_YAML_FORMAT = "Invalid YAML format";
80
81   public static final String CREATE_SERVICE_ARTIFACT = "Can't create service artifact";
82   public static final String CREATE_ENRICH_SERVICE_ARTIFACT =
83       "Can't create enriched service artifact";
84   public static final String CREATE_SERVICE_TEMPLATE = "Can't create service template";
85   public static final String CREATE_ENRICH_SERVICE_TEMPLATE =
86       "Can't create enriched service template";
87   public static final String GET_SERVICE_MODEL = "Can't get service model";
88   public static final String MISSING_MANDATORY_PROPERTY = "Missing mandatory property";
89   public static final String INVALID_PROPERTY = "Invalid Property";
90   public static final String INVALID_ADD_ACTION = "Invalid add action";
91   public static final String UNSUPPORTED_ENTITY = "Unsupported entity";
92   public static final String CREATE_CSAR = "Can't create CSAR file";
93   public static final String PACK_ARTIFACTS = "Can't pack artifacts into CSAR file";
94
95   public static final String TRANSLATE_HEAT = "Can't translate HEAT file";
96   public static final String RESOURCE_FILE_READ_ERROR = "Can't read resource file from class path.";
97   public static final String FAILED_TO_GENERATE_GLOBAL_TYPES = "Failed to generate globalTypes";
98
99   public static final String CHECKOUT_ENTITY = "Can't checkout versionable entity";
100   public static final String SUBMIT_ENTITY = "Can't submit versionable entity";
101   public static final String ENTITY_NOT_FOUND = "Versionable entity not found";
102   public static final String INVALID_VALUE = "Invalid value";
103
104   public static final String UNSUPPORTED_OPERATION = "Unsupported operation";
105   public static final String INVALID_JSON = "Invalid JSON format";
106
107   public static final String INSERT_INTO_APPLICATION_CONFIG =
108       "Can't insert value into application config table";
109
110   public static final String CANT_HEAL = "Can't perform healing operation";
111 }