コード例 #1
0
 public function __construct($url = "")
 {
     parent::__construct("The resource '" . $url . "' could not be found.");
 }
コード例 #2
0
 public function __construct($message = "", $statement = "")
 {
     parent::__construct($message . " The statement was: " . $statement);
 }
コード例 #3
0
 public function __construct($privateMessage = "", \Exception $previous = null)
 {
     parent::__construct($privateMessage, $previous);
     $this->publicMessage = "Sorry, you must be logged in to complete this action.";
 }
コード例 #4
0
 public function __construct($layoutClassName)
 {
     parent::__construct("The layout '{$layoutClassName}' could not be found.");
 }
コード例 #5
0
 public function __construct($errors = [])
 {
     $this->errors = $errors;
     parent::__construct("The model contains " . sizeof($errors) . " consistency errors: \r\n\r\n" . implode("\r\n", $this->getErrors()));
 }
コード例 #6
0
 public function __construct(Exception $nonRhubarbException)
 {
     parent::__construct(basename(get_class($nonRhubarbException)) . " - " . $nonRhubarbException->getMessage());
     $this->line = $nonRhubarbException->getLine();
     $this->file = $nonRhubarbException->getFile();
 }
コード例 #7
0
 public function __construct()
 {
     parent::__construct("Invalid Provider defined");
 }
コード例 #8
0
ファイル: UrlHandler.php プロジェクト: rhubarbphp/rhubarb
 public function generateResponseForException(RhubarbException $er)
 {
     $context = Application::current()->context();
     if ($context->isXhrRequest()) {
         $response = new Response();
     } else {
         $response = new HtmlResponse();
     }
     $response->setResponseCode(Response::HTTP_STATUS_SERVER_ERROR_GENERIC);
     $response->setContent($er->getPublicMessage());
     return $response;
 }
コード例 #9
0
 public function __construct($message)
 {
     parent::__construct($message);
 }
コード例 #10
0
 public function __construct($privateMessage = "", \Exception $previous = null)
 {
     parent::__construct($privateMessage, $previous);
     $this->publicMessage = "Sorry, we failed to authenticate your credentials at this time.";
 }
コード例 #11
0
 public function __construct($repositoryName)
 {
     parent::__construct("The repository {$repositoryName} could not connect to it's back end data store");
 }
コード例 #12
0
 public function __construct($message, $object)
 {
     $this->object = $object;
     parent::__construct($message);
 }
コード例 #13
0
 public function __construct($objectType, $uniqueIdentifier = null)
 {
     $this->objectType = $objectType;
     $this->uniqueIdentifier = $uniqueIdentifier;
     parent::__construct("A record of type '" . $objectType . "' could not be loaded for identifier '" . $uniqueIdentifier . "'");
 }
コード例 #14
0
 public function __construct($columnName)
 {
     parent::__construct("Sorting on column `" . $columnName . "` is not valid.");
 }
コード例 #15
0
ファイル: UrlHandler.php プロジェクト: robertfalconer/Rhubarb
 public function generateResponseForException(RhubarbException $er)
 {
     $response = new HtmlResponse();
     $response->setContent($er->getPublicMessage());
     return $response;
 }
コード例 #16
0
 public function __construct($path = "")
 {
     parent::__construct("The static resource '" . $path . "' could not be found.");
 }