From 238b7740f70a2bb01c03b1ae97557c2dd14a30b8 Mon Sep 17 00:00:00 2001 From: Michal Rehak Date: Tue, 10 Sep 2013 05:28:07 +0200 Subject: [PATCH] Add cause and errorType to RpcError Signed-off-by: Michal Rehak Change-Id: If2289524870ae9ca9f12a4b0ecf3bb3c5260ac38 --- .../yangtools/yang/common/RpcError.java | 60 ++++++++++--------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcError.java b/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcError.java index 775fa8eb76..3aad8a77a6 100644 --- a/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcError.java +++ b/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcError.java @@ -1,28 +1,32 @@ -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.yangtools.yang.common; - -public interface RpcError { - ErrorSeverity getSeverity(); - - String getTag(); - - String getApplicationTag(); - - String getMessage(); - - String getInfo(); - - public enum ErrorSeverity { - ERROR, WARNING, - } - - public enum ErrorType { - TRANSPORT, RPC, PROTOCOL, APPLICATION - } -} +/* + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package org.opendaylight.yangtools.yang.common; + +public interface RpcError { + ErrorSeverity getSeverity(); + + String getTag(); + + String getApplicationTag(); + + String getMessage(); + + String getInfo(); + + Throwable getCause(); + + ErrorType getErrorType(); + + public enum ErrorSeverity { + ERROR, WARNING, + } + + public enum ErrorType { + TRANSPORT, RPC, PROTOCOL, APPLICATION + } +} -- 2.36.6