Class Ethna_Error

Description

エラークラス

Located in /class/Ethna_Error.php (line 105)


	
			
Method Summary
 Ethna_Error Ethna_Error ([string $message = null], [int $code = null], [int $mode = null], [array $options = null], array $userinfo)
 void addUserInfo (string $info)
 integer getCode ()
 int getLevel ()
 string getMessage ()
 mixed getUserInfo ([int $n = null])
Methods
Constructor Ethna_Error (line 147)

Ethna_Errorクラスのコンストラクタ $userinfo は第5引数に設定すること。

Ethna_Error Ethna_Error ([string $message = null], [int $code = null], [int $mode = null], [array $options = null], array $userinfo)
  • string $message: エラーメッセージ
  • int $code: エラーコード
  • int $mode: エラーモード(Ethna_Errorはコールバックを 常に使用するので実質無視される)
  • array $options: エラーモード依存のオプション
  • array $userinfo: エラー追加情報($options より後の全ての引数)
addUserInfo (line 260)

エラー追加情報へのアクセサ(W)

  • access: public
void addUserInfo (string $info)
  • string $info: 追加するエラー情報
getCode (line 195)

エラーオブジェクトに関連付けられたエラーコードを返します。

  • return: - エラー番号
integer getCode ()
getLevel (line 206)

levelへのアクセサ(R)

  • return: エラーレベル
  • access: public
int getLevel ()
getMessage (line 221)

messageへのアクセサ(R)

以下の処理を行う

  • エラーメッセージのi18n処理
  • $userinfoとして渡されたデータによるvsprintf()処理

  • return: エラーメッセージ
  • access: public
string getMessage ()
getUserInfo (line 241)

エラー追加情報へのアクセサ(R)

エラー追加情報配列の個々のエントリへのアクセスをサポート

  • return: message引数
  • access: public
mixed getUserInfo ([int $n = null])
  • int $n: エラー追加情報のインデックス(省略可)

Documentation generated on Fri, 11 Nov 2011 03:59:42 +0900 by phpDocumentor 1.4.3