Flugg\Responder\Exceptions\Http\ApiException::__construct PHP Méthode

__construct() public méthode

Create a new exception instance.
public __construct ( mixed $message = null )
$message mixed
    public function __construct($message = null)
    {
        parent::__construct($this->statusCode, $message);
    }

Usage Example

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