|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.io.IOException | +--com.j_phone.io.ConnectionException
通信例外を定義します。 ServerObexConnection、ClientObexConnection の入出力処理において例外が発生したことを示すために使用します。 例外の詳細は getStatus() メソッドで取得することができます。
フィールドの概要 | |
static int |
ILLEGAL_STATE
オブジェクトの状態が不正であることを表します (=1)。 |
static int |
OBEX_ERROR
OBEXがエラーを返したことを表します(=12)。 |
static int |
RESOURCE_BUSY
リソースが使用中であることを表します (=3)。 |
static int |
STATUS_FIRST
システム定義の例外の最初の値です。 |
static int |
STATUS_LAST
システム定義の例外の最後の値です。 |
static int |
TIMEOUT
処理がタイムアウトしたことを表します (=7)。 |
static int |
UNDEFINED
未定義の例外を表します(=0)。 |
static int |
USER_ABORT
処理をユーザが中止したことを表します (=8)。 |
コンストラクタの概要 | |
ConnectionException()
詳細メッセージをつけないで通信例外オブジェクトを生成します。 |
|
ConnectionException(int stat)
詳細メッセージをつけないで通信例外オブジェクトを生成します。 |
|
ConnectionException(int status,
java.lang.String msg)
詳細メッセージをつけて通信例外オブジェクトを生成します。 |
メソッドの概要 | |
int |
getStatus()
例外の要因を表すステータスを取得します。 |
クラス java.lang.Throwable から継承したメソッド |
getMessage, printStackTrace, toString |
クラス java.lang.Object から継承したメソッド |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static final int ILLEGAL_STATE
public static final int RESOURCE_BUSY
public static final int TIMEOUT
public static final int USER_ABORT
public static final int OBEX_ERROR
public static final int UNDEFINED
public static final int STATUS_FIRST
public static final int STATUS_LAST
コンストラクタの詳細 |
public ConnectionException()
public ConnectionException(int stat)
stat
- 例外の原因を表す整数値public ConnectionException(int status, java.lang.String msg)
status
- 例外の原因を表す整数値msg
- 詳細メッセージメソッドの詳細 |
public int getStatus()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |