Feature uses features-parent as parent
[groupbasedpolicy.git] / renderers / opflex / src / main / java / org / opendaylight / groupbasedpolicy / renderer / opflex / lib / messages / OpflexError.java
1 /*
2  * Copyright (C) 2014 Cisco Systems, Inc.
3  * 
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  * 
8  * Authors : Thomas Bachman
9  */
10 package org.opendaylight.groupbasedpolicy.renderer.opflex.lib.messages;
11
12 public class OpflexError {
13
14     public static enum ErrorCode {
15         ERROR("ERROR"), EUNSUPPORTED("EUNSUPPORTED"), ESTATE("ESTATE"), EPROTO("EPROTO"), EDOMAIN("EDOMAIN");
16
17         private final String errorCode;
18
19         ErrorCode(String errorCode) {
20             this.errorCode = errorCode;
21         }
22
23         @Override
24         public String toString() {
25             return this.errorCode;
26         }
27     }
28
29     private String code;
30     private String message;
31     private String trace;
32     private String data;
33
34     public String getCode() {
35         return code;
36     }
37
38     public void setCode(String code) {
39         this.code = code;
40     }
41
42     public String getMessage() {
43         return message;
44     }
45
46     public void setMessage(String message) {
47         this.message = message;
48     }
49
50     public String getTrace() {
51         return trace;
52     }
53
54     public void setTrace(String trace) {
55         this.trace = trace;
56     }
57
58     public String getData() {
59         return data;
60     }
61
62     public void setData(String data) {
63         this.data = data;
64     }
65 }