__construct() публичный Метод

public __construct ( )
 /**
  * ArgumentOutOfRangeException constructor.
  *
  * @uses MyException::__construct
  *
  * @param string    $message        The exception message.
  * @param mixed     $userArgument   The user supplied argument. Default: Empty String.
  * @param Exception $previous       A previously thrown exception to be included in this exception to preserve the
  *                                  trace. Default: NULL.
  * @param int       $code           An associated error code. Default: 0.
  */
 public function __construct($message, $userArgument = NULL, Exception $previous = NULL, $code = 0)
 {
     parent::__construct($message, $previous, $code);
     $this->userArgument = $userArgument;
 }
Пример #2
0
 /**
  * コンストラクタ。
  *
  * @param string	$mes	エラーメッセージ
  * @param string	$pagename	ページ名
  */
 public function __construct($mes = '', $pagename)
 {
     parent::__construct($mes . "({$pagename})");
 }
Пример #3
0
 /**
  * コンストラクタ。
  *
  * @param string    $cmd    コマンド名
  */
 public function __construct($cmd)
 {
     parent::__construct("コマンドがありません({$cmd})。");
 }
 /**
  * InvalidOperationException constructor.
  *
  * @uses MyException::__construct
  *
  * @param string         $message  The exception message
  * @param Exception|NULL $previous A related previously thrown exception to preserve the trace. Default: NULL.
  * @param int            $code     An associated error code. Default: 0.
  */
 public function __construct($message, Exception $previous = NULL, $code = 0)
 {
     parent::__construct($message, $previous, $code);
 }
Пример #5
0
 /**
  * コンストラクタ。
  *
  * @param string	$plugin	プラグイン名
  */
 public function __construct($plugin)
 {
     parent::__construct("プラグインがありません({$plugin})。");
 }
Пример #6
0
 function __construct($message, $type = 'failed')
 {
     $this->_APIExceptionType = $type;
     return parent::__construct($message);
 }