From: Michal Rehak Date: Tue, 10 Sep 2013 03:28:07 +0000 (+0200) Subject: Add cause and errorType to RpcError X-Git-Tag: yangtools-0.1.0~31^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=238b7740f70a2bb01c03b1ae97557c2dd14a30b8;p=yangtools.git Add cause and errorType to RpcError Signed-off-by: Michal Rehak Change-Id: If2289524870ae9ca9f12a4b0ecf3bb3c5260ac38 --- 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 + } +}