public static enum MxException.ErrorCode extends java.lang.Enum<MxException.ErrorCode>
Enum Constant and Description |
---|
CommandTimeout
The Command Reply timeout.
|
InvalidParameter
The parameter is invalid.
|
InvalidResource
The required resource is not available.
|
NotSupported
This function is not supported by this model.
|
PortIsNotOpened
This port is not opened.
|
PortOpenFail
The port is opened failed.
|
PortReopened
The port is reopened or has not been closed properly.
|
ReadOverflow
The read buffer has overflowed.
|
Unsuccessful
An implicit exception from underlayer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getString()
Get the description of this error.
|
static MxException.ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MxException.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MxException.ErrorCode CommandTimeout
public static final MxException.ErrorCode InvalidParameter
public static final MxException.ErrorCode InvalidResource
public static final MxException.ErrorCode NotSupported
public static final MxException.ErrorCode PortIsNotOpened
public static final MxException.ErrorCode PortOpenFail
public static final MxException.ErrorCode PortReopened
public static final MxException.ErrorCode ReadOverflow
public static final MxException.ErrorCode Unsuccessful
Exception
to extract more information.public java.lang.String getString()
public static MxException.ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static MxException.ErrorCode[] values()
for (MxException.ErrorCode c : MxException.ErrorCode.values()) System.out.println(c);