/*
 * 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
    }
}

@@ -1,10 +1,11 @@
 /*
+%0D
 %0A * Copy
@@ -72,19 +72,21 @@
 eserved.
+%0D
 %0A *
+%0D
 %0A * This
@@ -153,16 +153,17 @@
 nder the
+%0D
 %0A * term
@@ -235,16 +235,17 @@
 ibution,
+%0D
 %0A * and 
@@ -305,12 +305,14 @@
 html
+%0D
 %0A */
+%0D
 %0Apac
@@ -355,17 +355,19 @@
 .common;
-%0A
+%0D%0A%0D
 %0Apublic 
@@ -386,16 +386,17 @@
 cError %7B
+%0D
 %0A    Err
@@ -420,17 +420,19 @@
 erity();
-%0A
+%0D%0A%0D
 %0A    Str
@@ -440,25 +440,27 @@
 ng getTag();
-%0A
+%0D%0A%0D
 %0A    String 
@@ -479,17 +479,19 @@
 onTag();
-%0A
+%0D%0A%0D
 %0A    Str
@@ -507,17 +507,19 @@
 ssage();
-%0A
+%0D%0A%0D
 %0A    Str
@@ -532,17 +532,89 @@
 tInfo();
-%0A
+%0D%0A    %0D%0A    Throwable getCause();%0D%0A    %0D%0A    ErrorType getErrorType();%0D%0A%0D
 %0A    pub
@@ -637,16 +637,17 @@
 verity %7B
+%0D
 %0A       
@@ -662,23 +662,26 @@
 WARNING,
+%0D
 %0A    %7D
-%0A
+%0D%0A%0D
 %0A    pub
@@ -700,16 +700,17 @@
 orType %7B
+%0D
 %0A       
@@ -751,13 +751,16 @@
 TION
+%0D
 %0A    %7D
+%0D
 %0A%7D
+%0D
 %0A

Add cause and errorType to RpcError