Top Description Fields Constructors Methods
org.osgi.service.serial

public Class SerialDeviceException

extends Exception
Class Inheritance

A exception used to indicate that a serial device communication problem occurred.
Author
$Id: 6a95abf56ab516ba7b0fb5b0d779db86ec840ca6 $

Field Summary

Modifier and TypeField and Description
public static final int
PORT_IN_USE

The port in use.

private static final long
private final int
public static final int
UNKNOWN

The reason is unknown.

public static final int
UNSUPPORTED_OPERATION

The operation is unsupported.

Constructor Summary

AccessConstructor and Description
public
SerialDeviceException(int
The type for this exception.
type
,
String
The message.
message
)

Creates a SerialDeviceException with the specified type and message.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The type of this exception.
getType
()

Returns the type for this exception.

Field Detail

PORT_IN_USEback to summary
public static final int PORT_IN_USE

The port in use.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

typeback to summary
private final int type
UNKNOWNback to summary
public static final int UNKNOWN

The reason is unknown.

UNSUPPORTED_OPERATIONback to summary
public static final int UNSUPPORTED_OPERATION

The operation is unsupported.

Constructor Detail

SerialDeviceExceptionback to summary
public SerialDeviceException(int type, String message)

Creates a SerialDeviceException with the specified type and message.

Parameters
type:int

The type for this exception.

message:String

The message.

Method Detail

getTypeback to summary
public int getType()

Returns the type for this exception.

Returns:int

The type of this exception.