PHP Class Flugg\Responder\Exceptions\Http\ApiException

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

Protected Properties

Свойство Type Description
$errorCode string The error code.
$statusCode integer The HTTP status code.

Méthodes publiques

Méthode 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 méthode

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

getData() public méthode

Get the error data.
public getData ( ) : array | null
Résultat array | null

getErrorCode() public méthode

Get the error code.
public getErrorCode ( ) : string
Résultat string

getStatusCode() public méthode

Get the HTTP status code,
public getStatusCode ( ) : integer
Résultat integer

Property Details

$errorCode protected_oe property

The error code.
protected string $errorCode
Résultat string

$statusCode protected_oe property

The HTTP status code.
protected int $statusCode
Résultat integer