PHP Class Marcelgwerder\ApiHandler\ApiHandlerException

Inheritance: extends Exception
Mostra file Open project: marcelgwerder/laravel-api-handler

Protected Properties

Property Type Description
$httpCode integer Http status code

Public Methods

Method Description
__construct ( string $code, array $replace = [], string $message = null ) Create a new instance of ApiHandlerException
getHttpCode ( ) : integer | string Get the http code of the exception

Method Details

__construct() public method

Create a new instance of ApiHandlerException
public __construct ( string $code, array $replace = [], string $message = null )
$code string
$replace array
$message string

getHttpCode() public method

Get the http code of the exception
public getHttpCode ( ) : integer | string
return integer | string

Property Details

$httpCode protected_oe property

Http status code
protected int $httpCode
return integer