775fa8eb76e5769a13060bc9ed47f45db0c260a5
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / RpcError.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.common;
9
10 public interface RpcError {
11     ErrorSeverity getSeverity();
12
13     String getTag();
14
15     String getApplicationTag();
16
17     String getMessage();
18
19     String getInfo();
20
21     public enum ErrorSeverity {
22         ERROR, WARNING,
23     }
24
25     public enum ErrorType {
26         TRANSPORT, RPC, PROTOCOL, APPLICATION
27     }
28 }