コード例 #1
0
 public function __construct(APIContentFieldValidationException $e)
 {
     $this->errors = $e->getFieldErrors();
     parent::__construct($e->getMessage(), $e->getCode(), $e);
 }
コード例 #2
0
ファイル: ApiExceptions.php プロジェクト: Tjorriemorrie/app
 function __construct($paramName, $limit)
 {
     parent::__construct("Parameter '{$paramName}' exceeds limit of {$limit}");
 }
コード例 #3
0
 public function __construct($message = 'Resource not found', \Exception $previous = null)
 {
     parent::__construct($message, 404, $previous);
 }