PHP Class Flugg\Responder\Exceptions\Http\ApiException

Author: Alexander Tømmerås ([email protected])
Inheritance: extends Symfony\Component\HttpKernel\Exception\HttpException
Exibir arquivo Open project: flugger/laravel-responder Class Usage Examples

Protected Properties

Property Type Description
$errorCode string The error code.
$statusCode integer The HTTP status code.

Public Methods

Method Description
__construct ( mixed $message = null ) Create a new exception instance.
getData ( ) : array | null Get the error data.
getErrorCode ( ) : string Get the error code.
getStatusCode ( ) : integer Get the HTTP status code,

Method Details

__construct() public method

Create a new exception instance.
public __construct ( mixed $message = null )
$message mixed

getData() public method

Get the error data.
public getData ( ) : array | null
return array | null

getErrorCode() public method

Get the error code.
public getErrorCode ( ) : string
return string

getStatusCode() public method

Get the HTTP status code,
public getStatusCode ( ) : integer
return integer

Property Details

$errorCode protected_oe property

The error code.
protected string $errorCode
return string

$statusCode protected_oe property

The HTTP status code.
protected int $statusCode
return integer