Add cause and errorType to RpcError
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / RpcError.java
1 /*\r
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 package org.opendaylight.yangtools.yang.common;\r
9 \r
10 public interface RpcError {\r
11     ErrorSeverity getSeverity();\r
12 \r
13     String getTag();\r
14 \r
15     String getApplicationTag();\r
16 \r
17     String getMessage();\r
18 \r
19     String getInfo();\r
20     \r
21     Throwable getCause();\r
22     \r
23     ErrorType getErrorType();\r
24 \r
25     public enum ErrorSeverity {\r
26         ERROR, WARNING,\r
27     }\r
28 \r
29     public enum ErrorType {\r
30         TRANSPORT, RPC, PROTOCOL, APPLICATION\r
31     }\r
32 }\r