__construct() 공개 메소드

Constructor.
public __construct ( string $message = null, integer $code, Exception $previous = null )
$message string error message
$code integer error code
$previous Exception The previous exception used for the exception chaining.
예제 #1
0
 /**
  * FormErrorsException constructor.
  * @param array $errors
  * @param string|null $message
  * @param integer|null $code
  * @param \Exception $previous
  */
 public function __construct(array $errors, $message = null, $code = 0, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
     if (!empty($errors)) {
         $this->applyErrors($errors);
     }
 }