2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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 package org.opendaylight.yangtools.restconf.client.to;
10 import org.opendaylight.yangtools.yang.common.RpcError;
12 public class RestRpcError implements RpcError {
14 private final ErrorSeverity severity;
15 private final String tag;
16 private final String applicationTag;
17 private final String message;
18 private final String info;
19 private final Throwable cause;
20 private final ErrorType errorType;
22 public RestRpcError(ErrorSeverity severity, ErrorType type,String tag,String applicationTag,String message,String info,Throwable cause){
23 this.severity = severity;
25 this.applicationTag = applicationTag;
26 this.message = message;
29 this.errorType = type;
31 public RestRpcError(ErrorSeverity severity, ErrorType type, String message,Throwable cause){
32 this.severity = severity;
33 this.message = message;
35 this.errorType = type;
37 this.applicationTag = "";
41 public ErrorSeverity getSeverity() {
46 public String getTag() {
51 public String getApplicationTag() {
52 return this.applicationTag;
56 public String getMessage() {
61 public String getInfo() {
66 public Throwable getCause() {
71 public ErrorType getErrorType() {
72 return this.errorType;