X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fcrud%2Fexception%2FCrudException.java;h=57d9858a79ce30b84995e85884473ebc85fbf16f;hb=28f9fa1399f5e513a3d5860c52cd51b615bc0a2c;hp=a3d312751d7d6f2c5d8578f7ba287ad4993419b8;hpb=908b4693e5a0a4c2f323dbf518b35e4620f183a1;p=aai%2Fgizmo.git diff --git a/src/main/java/org/onap/crud/exception/CrudException.java b/src/main/java/org/onap/crud/exception/CrudException.java index a3d3127..57d9858 100644 --- a/src/main/java/org/onap/crud/exception/CrudException.java +++ b/src/main/java/org/onap/crud/exception/CrudException.java @@ -1,16 +1,15 @@ /** * ============LICENSE_START======================================================= - * Gizmo + * org.onap.aai * ================================================================================ - * Copyright © 2017 AT&T Intellectual Property. - * Copyright © 2017 Amdocs - * All rights reserved. + * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright © 2017-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 + * 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, @@ -18,8 +17,6 @@ * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= - * - * ECOMP is a trademark and service mark of AT&T Intellectual Property. */ package org.onap.crud.exception; @@ -27,36 +24,38 @@ import javax.ws.rs.core.Response.Status; public class CrudException extends Exception { - private static final long serialVersionUID = 8162385108397238865L; + private static final long serialVersionUID = 8162385108397238865L; + + private Status httpStatus; - private Status httpStatus; + public CrudException() {} - public CrudException() { - } + public CrudException(String message) { + super(message); + } - public CrudException(String message, Status httpStatus) { - super(message); - this.setHttpStatus(httpStatus); - } + public CrudException(String message, Status httpStatus) { + super(message); + this.setHttpStatus(httpStatus); + } - public CrudException(Throwable cause) { - super(cause); - } + public CrudException(Throwable cause) { + super(cause); + } - public CrudException(String message, Throwable cause) { - super(message, cause); - } + public CrudException(String message, Throwable cause) { + super(message, cause); + } - public CrudException(String message, Throwable cause, boolean enableSuppression, - boolean writableStackTrace) { - super(message, cause, enableSuppression, writableStackTrace); - } + public CrudException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { + super(message, cause, enableSuppression, writableStackTrace); + } - public Status getHttpStatus() { - return httpStatus; - } + public Status getHttpStatus() { + return httpStatus; + } - public void setHttpStatus(Status httpStatus) { - this.httpStatus = httpStatus; - } + public void setHttpStatus(Status httpStatus) { + this.httpStatus = httpStatus; + } }