5983a5a5fc6dd32374c8cb1f9d33affc529b9c0f
[sdc/sdc-workflow-designer.git] /
1 /**
2  * Copyright (c) 2017 ZTE Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the Apache License, Version 2.0
5  * and the Eclipse Public License v1.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     ZTE - initial API and implementation and/or initial documentation
11  */
12
13 package org.onap.sdc.workflowdesigner.utils.entity;
14
15 public class CommonErrorResponse {
16   private String code;
17   private String message;
18   
19   public static Object failure(String message) {
20     return message;
21   }
22
23   public CommonErrorResponse(String message) {
24     super();
25     this.message = message;
26   }
27
28   /**
29    * @return the code
30    */
31   public String getCode() {
32     return code;
33   }
34
35   /**
36    * @param code the code to set
37    */
38   public void setCode(String code) {
39     this.code = code;
40   }
41
42   /**
43    * @return the message
44    */
45   public String getMessage() {
46     return message;
47   }
48
49   /**
50    * @param message the message to set
51    */
52   public void setMessage(String message) {
53     this.message = message;
54   }
55
56 }