javax.bluetooth
Class BluetoothStateException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.io.IOException
|
+--javax.bluetooth.BluetoothStateException
- public class BluetoothStateException
- extends java.io.IOException
The BluetoothStateException is thrown when
a request is made to the Bluetooth system that
the system cannot support in its present state. If, however, the
Bluetooth system was not in this state, it could support this operation.
For example, some Bluetooth systems do not allow the device to go into
inquiry mode if a connection is established. This exception would be
thrown if startInquiry() were called.
| Methods inherited from class java.lang.Throwable |
getMessage,
printStackTrace,
toString |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
BluetoothStateException
public BluetoothStateException()
- Creates a new
BluetoothStateException without a detail
message.
BluetoothStateException
public BluetoothStateException(java.lang.String msg)
- Creates a
BluetoothStateException with the specified
detail message.
- Parameters:
msg - the reason for the exception