public class YangException extends JNCException
| Modifier and Type | Field and Description |
|---|---|
static int |
BAD_SESSION_NAME |
static int |
BAD_VALUE |
static int |
ELEMENT_MISSING |
AUTH_FAILED, ELEMENT_ALREADY_IN_USE, errorCode, MESSAGE_ID_MISMATCH, NOTIFICATION_ERROR, opaqueData, PARSER_ERROR, PATH_CREATE_ERROR, PATH_ERROR, REVISION_ERROR, RPC_REPLY_ERROR, SESSION_ERROR, TIMEOUT_ERROR| Constructor and Description |
|---|
YangException(int errorCode,
java.lang.Object opaqueData) |
| Modifier and Type | Method and Description |
|---|---|
static void |
throwException(boolean fail,
java.lang.Object o)
Asserts that fail is false, throws BAD_VALUE with o otherwise.
|
java.lang.String |
toString()
The toString method uses both of errorCode and opaqueData fields to
generate an appropriate error string.
|
public static final int ELEMENT_MISSING
public static final int BAD_VALUE
public static final int BAD_SESSION_NAME
public java.lang.String toString()
JNCExceptiontoString in class JNCExceptionpublic static void throwException(boolean fail,
java.lang.Object o)
throws YangException
fail - Determines if a Bad Value YangException is throwno - Object which toString-method will be appended to exceptionYangException - if and only if fail is true