public class MessageException extends IOException
Modifier and Type | Field and Description |
---|---|
static int |
CODE_ALREADY_REGISTERED
Has already registered.
|
static int |
CODE_BUSY
Target application is busy now.
|
static int |
CODE_EXEC_FAILED
Failed to execute the request
|
static int |
CODE_ILLEGAL_ARGUMENT
Illegal argument
|
static int |
CODE_NAME_INVALID
Registered name is invalid
|
static int |
CODE_NAME_USED
Registered name has been used by others
|
static int |
CODE_NOT_REGISTERED
Has not registered
|
static int |
CODE_OK
Success
|
static int |
CODE_TARGET_NOT_READY
Target application is not ready now.
|
static int |
CODE_UNKNOWN
Unknown error
|
static int |
CODE_UNSUPPORTED
Unsupported request
|
Constructor and Description |
---|
MessageException(int code)
Constructs a new
MessageException with the specified code |
MessageException(int code,
String message)
Constructs a new
MessageException with the specified code
and message |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns the code for this exception.
|
String |
getMessage()
Returns the detail message for this exception.
|
initCause, printStackTrace, printStackTrace, toString
public static final int CODE_OK
public static final int CODE_UNKNOWN
public static final int CODE_ILLEGAL_ARGUMENT
public static final int CODE_NOT_REGISTERED
public static final int CODE_ALREADY_REGISTERED
public static final int CODE_NAME_INVALID
public static final int CODE_NAME_USED
public static final int CODE_BUSY
public static final int CODE_TARGET_NOT_READY
public static final int CODE_UNSUPPORTED
public static final int CODE_EXEC_FAILED
public MessageException(int code)
MessageException
with the specified codecode
- the code for the exception.public MessageException(int code, String message)
MessageException
with the specified code
and messagecode
- the code for the exception.message
- the detail message.public int getCode()
public String getMessage()
getMessage
in class Throwable
Throwable
object if it was created
with an
error message string; or null
if it was
created
with no error message.