de.enough.polish.android.bluetooth
Class BluetoothStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by de.enough.polish.android.bluetooth.BluetoothStateException
All Implemented Interfaces:
Serializable

public class BluetoothStateException
extends 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.

1.3

Constructor Summary
BluetoothStateException()
          Creates a new BluetoothStateException without a detail message.
BluetoothStateException(java.lang.String msg)
          Creates a BluetoothStateException with the specified detail message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Constructor Detail

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.
JSR 82

Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 82 specification.

See Also:
Serialized Form

Constructor Summary
BluetoothStateException()
          Creates a new BluetoothStateException without a detail message.
BluetoothStateException(String msg)
          Creates a BluetoothStateException with the specified detail message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BluetoothStateException

public BluetoothStateException()
Creates a new BluetoothStateException without a detail message.


BluetoothStateException

public BluetoothStateException(String msg)
Creates a BluetoothStateException with the specified detail message.

Parameters:
msg - - the reason for the exception