Fix gvnfm juju compile problem
[vfc/nfvo/driver/vnfm/gvnfm.git] / juju / juju-vnfmadapter / Juju-vnfmadapterService / service / src / main / java / org / onap / vfc / nfvo / vnfm / gvnfm / jujuvnfmadapter / service / rest / exceptionmapper / ExceptionMessage.java
1 /*
2  * Copyright 2016 Huawei Technologies Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.service.rest.exceptionmapper;
18
19 import org.apache.http.HttpStatus;
20
21 /**
22  * Exception response model.<br>
23  *
24  * @author
25  * @version NFVO 0.5 Sep 27, 2016
26  */
27 public class ExceptionMessage {
28
29         private String errorCode = "unknown.error";
30
31         private int httpCode = HttpStatus.SC_INTERNAL_SERVER_ERROR;
32
33         private String message;
34
35         @Override
36         public String toString() {
37             return "Error {errorCode=" + this.errorCode + ", httpCode=" + this.httpCode + ", message="
38                     + this.message + "}";
39         }
40
41         public String getErrorCode() {
42             return this.errorCode;
43         }
44
45         public void setErrorCode(String errorCode) {
46             this.errorCode = errorCode;
47         }
48
49         public String getMessage() {
50             return this.message;
51         }
52
53         public void setMessage(String message) {
54             this.message = message;
55         }
56
57         public int getHttpCode() {
58             return this.httpCode;
59         }
60
61         public void setHttpCode(int httpCode) {
62             this.httpCode = httpCode;
63         }
64 }