示例#1
0
 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
 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);
 }
 public function __construct($methodName)
 {
     $msg = "Cannot find a suitable class for actions of type '{$methodName}'";
     parent::__construct(500, $msg, $msg);
 }
 public function __construct($elementType)
 {
     $msg = "Unknown DOM element type '{$elementType}'";
     parent::__construct(500, $msg, $msg);
 }