Added range type to subject-feature-definition/parameter
[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"),
16                 EUNSUPPORTED("EUNSUPPORTED"),
17                 ESTATE("ESTATE"),
18                 EPROTO("EPROTO"),
19                 EDOMAIN("EDOMAIN");
20
21                 private String errorCode;
22
23                 ErrorCode(String errorCode) {
24                         this.errorCode = errorCode;
25                 }
26
27                 @Override
28                 public String toString() {
29                         return this.errorCode;
30                 }
31         }
32
33         private String code;
34         private String message;
35         private String trace;
36         private String data;
37         public String getCode() {
38                 return code;
39         }
40         public void setCode(String code) {
41                 this.code = code;
42         }
43         public String getMessage() {
44                 return message;
45         }
46         public void setMessage(String message) {
47                 this.message = message;
48         }
49         public String getTrace() {
50                 return trace;
51         }
52         public void setTrace(String trace) {
53                 this.trace = trace;
54         }
55         public String getData() {
56                 return data;
57         }
58         public void setData(String data) {
59                 this.data = data;
60         }
61 }