コード例 #1
0
ファイル: ActionFailed.php プロジェクト: datasift/storyplayer
 public function __construct($actionName, $reason = '', $params = array())
 {
     $msg = "Action '{$actionName}' failed";
     if (strlen($reason) > 0) {
         $msg .= "; reason is '{$reason}'";
     }
     parent::__construct(500, $msg, $msg);
 }
コード例 #2
0
ファイル: ExpectFailed.php プロジェクト: datasift/storyplayer
 public function __construct($actionName, $expected, $found)
 {
     $msg = "Action '{$actionName}' failed; expected '{$expected}', found '{$found}'";
     parent::__construct(500, $msg, $msg);
 }
コード例 #3
0
 public function __construct($methodName)
 {
     $msg = "Method '{$methodName}' has not been implemented yet";
     parent::__construct(500, $msg, $msg);
 }
コード例 #4
0
 public function __construct($methodName)
 {
     $msg = "Cannot find a suitable class for actions of type '{$methodName}'";
     parent::__construct(500, $msg, $msg);
 }
コード例 #5
0
 public function __construct($elementType)
 {
     $msg = "Unknown DOM element type '{$elementType}'";
     parent::__construct(500, $msg, $msg);
 }