ObjectThrowable
Exception
RuntimeException
com.nttdocomo.device.DeviceException
デバイス例外を定義します。 主にdeviceパッケージのクラスが実行時例外を起こしたことを示すためにスローされます。 例外の詳細を、getStatus メソッドで得ることができます。
| フィールドの概要 | |
static int |
BUSY_RESOURCE
リソースが使用中であることを示します (=3)。 |
static int |
ILLEGAL_STATE
状態が不正であることを示します (=1)。 |
static int |
INTERRUPTED
中断要求によりデバイスが処理に失敗したことを表します(=5)。 |
static int |
NO_RESOURCES
リソースが確保できないことを示します (=2)。 |
static int |
RACE_CONDITION
競合条件などによりデバイスが使用できないことを示します (=4)。 |
static int |
UNDEFINED
ステータスが未定義であることを示します (=0)。 |
| コンストラクタの概要 | |
DeviceException()
詳細メッセージをつけないでデバイス例外オブジェクトを生成します。 |
|
DeviceException(int status)
例外の原因を示すステータス値をつけてデバイス例外オブジェクトを生成します。 |
|
DeviceException(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 ILLEGAL_STATE
public static final int NO_RESOURCES
public static final int BUSY_RESOURCE
public static final int RACE_CONDITION
public static final int INTERRUPTED
| コンストラクタの詳細 |
public DeviceException()
UNDEFINEDに設定されます。
public DeviceException(int status)
status - 設定するステータスの値を指定します。
public DeviceException(int status,
String msg)
status - 設定するステータスの値を指定します。msg - 詳細メッセージを指定します。| メソッドの詳細 |
public int getStatus()