diff options
Diffstat (limited to 'src/main/java/org/onap/pomba/contextbuilder/sdnc/exception')
-rw-r--r-- | src/main/java/org/onap/pomba/contextbuilder/sdnc/exception/AuditError.java | 26 | ||||
-rw-r--r-- | src/main/java/org/onap/pomba/contextbuilder/sdnc/exception/AuditException.java | 7 |
2 files changed, 32 insertions, 1 deletions
diff --git a/src/main/java/org/onap/pomba/contextbuilder/sdnc/exception/AuditError.java b/src/main/java/org/onap/pomba/contextbuilder/sdnc/exception/AuditError.java new file mode 100644 index 0000000..f4caafe --- /dev/null +++ b/src/main/java/org/onap/pomba/contextbuilder/sdnc/exception/AuditError.java @@ -0,0 +1,26 @@ +/*
+ * ============LICENSE_START===================================================
+ * Copyright (c) 2018 Amdocs
+ * ============================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=====================================================
+ */
+
+package org.onap.pomba.contextbuilder.sdnc.exception;
+
+public class AuditError {
+
+ public static final String INTERNAL_SERVER_ERROR = "Internal Server Error";
+ public static final String JSON_PARSE_ERROR = "Json Parse Error ";
+ public static final String JSON_EMPTY_RESPONSE = "Json Empty Response ";
+}
diff --git a/src/main/java/org/onap/pomba/contextbuilder/sdnc/exception/AuditException.java b/src/main/java/org/onap/pomba/contextbuilder/sdnc/exception/AuditException.java index 63137a1..9c7348f 100644 --- a/src/main/java/org/onap/pomba/contextbuilder/sdnc/exception/AuditException.java +++ b/src/main/java/org/onap/pomba/contextbuilder/sdnc/exception/AuditException.java @@ -26,7 +26,6 @@ public class AuditException extends Exception { private Status httpStatus; - public AuditException(String message) { super(message); } @@ -36,6 +35,10 @@ public class AuditException extends Exception { this.setHttpStatus(httpStatus); } + public AuditException(String message, Throwable cause) { + super(message, cause); + } + public Status getHttpStatus() { return httpStatus; } @@ -43,4 +46,6 @@ public class AuditException extends Exception { public void setHttpStatus(Status httpStatus) { this.httpStatus = httpStatus; } + + } |