2 * Copyright (C) 2014 Cisco Systems, Inc.
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
8 * Authors : Thomas Bachman
10 package org.opendaylight.groupbasedpolicy.renderer.opflex.lib.messages;
12 public class OpflexError {
14 public static enum ErrorCode {
15 ERROR("ERROR"), EUNSUPPORTED("EUNSUPPORTED"), ESTATE("ESTATE"), EPROTO("EPROTO"), EDOMAIN("EDOMAIN");
17 private final String errorCode;
19 ErrorCode(String errorCode) {
20 this.errorCode = errorCode;
24 public String toString() {
25 return this.errorCode;
30 private String message;
34 public String getCode() {
38 public void setCode(String code) {
42 public String getMessage() {
46 public void setMessage(String message) {
47 this.message = message;
50 public String getTrace() {
54 public void setTrace(String trace) {
58 public String getData() {
62 public void setData(String data) {