public class SerialDeviceException extends Exception
Modifier and Type | Field and Description |
---|---|
static int |
PORT_IN_USE
The port in use.
|
static int |
UNKNOWN
The reason is unknown.
|
static int |
UNSUPPORTED_OPERATION
The operation is unsupported.
|
Constructor and Description |
---|
SerialDeviceException(int type,
String message)
Creates a SerialDeviceException with the specified type and message.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Returns the type for this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int UNKNOWN
public static final int PORT_IN_USE
public static final int UNSUPPORTED_OPERATION
public SerialDeviceException(int type, String message)
type
- The type for this exception.message
- The message.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0