__construct() public method

public __construct ( $message = '', $code, Exception $previous = null )
$previous Exception
 /**
  * @param null       $message
  * @param \Exception $previous
  * @param int        $code
  */
 public function __construct($message = null, \Exception $previous = null, $code = 0)
 {
     if ($message === null) {
         $message = trans($this->message);
     }
     parent::__construct($message, $previous, $code);
 }
 public function __construct($message = null, \Exception $previous = null, $code = 0, $adminContext = false)
 {
     $this->adminContext = $adminContext;
     parent::__construct($message, $previous, $code);
 }
示例#3
0
 public function __construct()
 {
     parent::__construct('variant_not_found');
 }
 public function __construct()
 {
     parent::__construct('mongo_id_not_found');
 }
 public function __construct($id)
 {
     parent::__construct(sprintf("Form %d not found", $id));
 }
 public function __construct($message = null, \Exception $previous = null, $code = 0)
 {
     parent::__construct(trans(PasswordBroker::INVALID_USER), $previous, $code);
 }
 public function __construct($message = "We could not found what you were looking for", \Exception $previous = null, $code = 0)
 {
     parent::__construct($message, $previous, $code);
 }
 /**
  * Constructor
  *
  * @param int $id
  */
 public function __construct($id)
 {
     $msg = sprintf('Order with ID "%s" was not found.', $id);
     parent::__construct($msg);
 }
 /**
  * InvalidPaymentTokenException constructor.
  *
  * @param null|string $token
  */
 public function __construct($token)
 {
     $msg = sprintf('Payment for given token "%s" was not found', $token);
     parent::__construct($msg);
 }
 public function __construct()
 {
     parent::__construct('token_not_found');
 }
示例#11
0
 public function __construct($message = null, \Exception $previous = null, $code = 0)
 {
     $message = is_null($message) ? trans('Not Found') : $message;
     parent::__construct($message, $previous, $code);
 }
 public function __construct($name)
 {
     parent::__construct(sprintf("Builder '%s' not found", $name));
 }
示例#13
0
 /**
  * Constructor
  *
  * @param string     $message Error message
  * @param \Exception $prev    Previous Exception
  */
 public function __construct($message = "Not Found", $prev = null)
 {
     parent::__construct($message, $prev);
 }
 /**
  * An enhanced constructor that allows for passing the default \Exception parameters, as well as an array of additional
  * attributes followed by any number of additional arguments that will be passed to sprintf against the message.
  *
  * @param string|null  $message    An error message string (optionally fed to sprintf if optional args are given)
  * @param int|null     $code       The error code (which should be from ORMExceptionInterface). If null, the value
  *                                 of ExceptionInterface::CODE_GENERIC will be used.
  * @param mixed        $previous   The previous exception (when re-thrown within another exception), if applicable.
  * @param mixed[]|null $attributes An optional array of attributes to pass. Will be provided in the debug output.
  * @param mixed        ...$sprintfArgs Optional additional parameters that will be passed to sprintf against the
  *                                 message string provided.
  */
 public function __construct($message = null, $code = null, $previous = null, array $attributes = null, ...$sprintfArgs)
 {
     parent::__construct($this->getFinalCode((int) $code), $this->getFinalMessage((string) $message, ...$sprintfArgs), $this->getFinalPrevious($previous), $attributes, $this->getFinalCode((int) $code));
     $this->setAttributes((array) $attributes);
 }
 /**
  * @param string $application
  */
 public function __construct($application)
 {
     parent::__construct(sprintf('Application with name "%s" not found', $application));
 }