public class SerialPortException
extends java.lang.RuntimeException
限定符和类型 | 字段和说明 |
---|---|
static int |
CODE_485NOTINITIALIZINGERROR
485没有初始化
|
static int |
CODE_INITERROR
初始化失败
|
static int |
CODE_INITIALIZINGERROR
正在初始化
|
构造器和说明 |
---|
SerialPortException(int errorCode)
Constructs a new runtime exception with
null as its
detail message. |
SerialPortException(int errorCode,
java.lang.String message)
Constructs a new runtime exception with the specified detail message.
|
SerialPortException(int errorCode,
java.lang.String message,
java.lang.Throwable cause)
Constructs a new runtime exception with the specified detail message and
cause.
|
SerialPortException(int errorCode,
java.lang.Throwable cause)
Constructs a new runtime exception with the specified cause and a
detail message of (cause==null ?
|
限定符和类型 | 方法和说明 |
---|---|
int |
getErrorCode() |
public static final int CODE_INITERROR
public static final int CODE_INITIALIZINGERROR
public static final int CODE_485NOTINITIALIZINGERROR
public SerialPortException(int errorCode)
null
as its
detail message. The cause is not initialized, and may subsequently be
initialized by a call to Throwable.initCause(java.lang.Throwable)
.errorCode
- public SerialPortException(int errorCode, java.lang.String message)
Throwable.initCause(java.lang.Throwable)
.errorCode
- message
- the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage()
method.public SerialPortException(int errorCode, java.lang.String message, java.lang.Throwable cause)
Note that the detail message associated with
cause
is not automatically incorporated in
this runtime exception's detail message.
errorCode
- message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public SerialPortException(int errorCode, java.lang.Throwable cause)
errorCode
- cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)