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 © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0