Class Ethna_Error

Description

エラークラス

Located in /class/Error.php (line 113)


	
			
Variable Summary
 mixed $code
 mixed $i18n
 mixed $logger
 mixed $message
 mixed $mode
 mixed $options
 mixed $userinfo
Method Summary
 Ethna_Error __construct ([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])
Variables
mixed $code (line 129)
  • access: protected
mixed $i18n (line 120)
  • access: protected
mixed $logger (line 123)
  • access: protected
mixed $message (line 126)
  • access: protected
mixed $mode (line 132)
  • access: protected
mixed $options (line 135)
  • access: protected
mixed $userinfo (line 138)
  • access: protected
Methods
Constructor __construct (line 155)

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

Ethna_Error __construct ([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 268)

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

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

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

  • return: - エラー番号
  • access: public
integer getCode ()
getLevel (line 214)

levelへのアクセサ(R)

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

messageへのアクセサ(R)

以下の処理を行う

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

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

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

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

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

Documentation generated on Fri, 11 Nov 2011 03:58:02 +0900 by phpDocumentor 1.4.3