Flugg\Responder\Exceptions\Http\ApiException::__construct PHP Method

__construct() public method

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

Usage Example

コード例 #1
0
 /**
  * Create a new exception instance.
  *
  * @param Validator $validator
  */
 public function __construct(Validator $validator)
 {
     $this->validator = $validator;
     parent::__construct();
 }