__construct() public method

Create a new exception instance.
public __construct ( mixed $message = null )
$message mixed
 /**
  * Create a new exception instance.
  *
  * @param Validator $validator
  */
 public function __construct(Validator $validator)
 {
     $this->validator = $validator;
     parent::__construct();
 }