Package org.osgi.service.serial
Class SerialDeviceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.osgi.service.serial.SerialDeviceException
- All Implemented Interfaces:
Serializable
A exception used to indicate that a serial device communication problem
occurred.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The port in use.static final int
The reason is unknown.static final int
The operation is unsupported. -
Constructor Summary
ConstructorDescriptionSerialDeviceException
(int type, String message) Creates a SerialDeviceException with the specified type and message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
UNKNOWN
public static final int UNKNOWNThe reason is unknown.- See Also:
-
PORT_IN_USE
public static final int PORT_IN_USEThe port in use.- See Also:
-
UNSUPPORTED_OPERATION
public static final int UNSUPPORTED_OPERATIONThe operation is unsupported.- See Also:
-
-
Constructor Details
-
SerialDeviceException
Creates a SerialDeviceException with the specified type and message.- Parameters:
type
- The type for this exception.message
- The message.
-
-
Method Details
-
getType
public int getType()Returns the type for this exception.- Returns:
- The type of this exception.
-