ObjectThrowable
Exception
RuntimeException
com.nttdocomo.device.BluetoothException
Bluetoothの例外を定義します。 実行時例外を起こしたことを示すためにスローされます。 例外の詳細を、getStatus メソッドで得ることができます。
| フィールドの概要 | |
static int |
LINKKEY_ERROR
リンクキーが不正であることを示します (=4)。 |
static int |
SELF_MODE
端末がセルフモードのため、Bluetoothを利用できないことを表します (=1)。 |
static int |
TIMEOUT
タイムアウトが発生したことを表します (=2)。 |
static int |
UNDEFINED
ステータスが未定義であることを示します (=0)。 |
static int |
UNKNOWN_PROFILE
プロファイルが外部機器で未サポートであることを示します (=5)。 |
static int |
USER_ABORT
ユーザ操作による中断されたことを示します (=3)。 |
| コンストラクタの概要 | |
BluetoothException()
詳細メッセージをつけないでデバイス例外オブジェクトを生成します。 |
|
BluetoothException(int status)
例外の原因を示すステータス値をつけてデバイス例外オブジェクトを生成します。 |
|
BluetoothException(int status,
String msg)
例外の原因を示すステータス値と詳細メッセージをつけてデバイス例外オブジェクトを生成します。 |
|
| メソッドの概要 | |
int |
getStatus()
例外の原因を示すステータス値を取得します。 |
| クラス Throwable から継承したメソッド |
getMessage, printStackTrace, toString |
| クラス Object から継承したメソッド |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
public static final int UNDEFINED
public static final int SELF_MODE
public static final int TIMEOUT
public static final int USER_ABORT
public static final int LINKKEY_ERROR
public static final int UNKNOWN_PROFILE
| コンストラクタの詳細 |
public BluetoothException()
UNDEFINEDに設定されます。
public BluetoothException(int status)
status - 設定するステータスの値を指定します。
public BluetoothException(int status,
String msg)
status - 設定するステータスの値を指定します。msg - 詳細メッセージを指定します。| メソッドの詳細 |
public int getStatus()