public class JNCException
extends java.lang.Exception
JNCException uses an errorCode field to indicate what went wrong. Depending on errorCode an opaqueData field may point to contextual information describing the error. The toString method uses both of these fields to print an appropriate error string describing the error.
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTH_FAILED |
static int |
ELEMENT_ALREADY_IN_USE
This element has already been used.
|
static int |
ELEMENT_MISSING
This element does not exist.
|
protected int |
errorCode
An error code indicating what went wrong.
|
static int |
MESSAGE_ID_MISMATCH
Message-id mismatch.
|
static int |
NOTIFICATION_ERROR
Notification error.
|
protected java.lang.Object |
opaqueData
Contextual information describing the error.
|
static int |
PARSER_ERROR |
static int |
PATH_CREATE_ERROR |
static int |
PATH_ERROR |
static int |
REVISION_ERROR
Revision error.
|
static int |
RPC_REPLY_ERROR
An
rpc-reply with one or more reply-error
elements was returned from the device. |
static int |
SESSION_ERROR
A session error occured.
|
static int |
TIMEOUT_ERROR
Timeout error.
|
| Constructor and Description |
|---|
JNCException(int errorCode,
java.lang.Object opaqueData) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
The toString method uses both of errorCode and opaqueData fields to
generate an appropriate error string.
|
protected int errorCode
AUTH_FAILED
PATH_ERROR
PATH_CREATE_ERROR
PARSER_ERROR
RPC_REPLY_ERROR
SESSION_ERROR
ELEMENT_ALREADY_IN_USE
ELEMENT_MISSING
NOTIFICATION_ERROR
TIMEOUT_ERROR
REVISION_ERROR
Depending on the value the opaqueData field may be set accordingly. If so this is described below for each possible value.
protected java.lang.Object opaqueData
public static final int AUTH_FAILED
public static final int PATH_ERROR
public static final int PATH_CREATE_ERROR
public static final int PARSER_ERROR
public static final int RPC_REPLY_ERROR
rpc-reply with one or more reply-error
elements was returned from the device. The opaqueData field contains the
error (in XML format) returned from the device.public static final int SESSION_ERROR
public static final int ELEMENT_ALREADY_IN_USE
public static final int ELEMENT_MISSING
public static final int NOTIFICATION_ERROR
public static final int TIMEOUT_ERROR
public static final int REVISION_ERROR
public static final int MESSAGE_ID_MISMATCH