/**
  * @param string $message The internal exception message.
  * @param Exception $previous The previous exception.
  * @param integer $code The internal exception code.
  */
 public function __construct($message = self::DEFAULT_MESSAGE, $code = 0, Exception $previous = NULL)
 {
     parent::__construct($message, $code, $previous);
 }
Пример #2
0
 /**
  * @param string $field
  * @param JsonApi\EntityResource $resource
  * @param string $message
  * @param integer $code
  * @param \Exception $exception
  */
 public function __construct($field, $resource, $message = "", $code = 0, \Exception $previous = NULL)
 {
     parent::__construct($message, $code, $previous);
     $this->field = $field;
     $this->resource = $resource;
 }