PHP Class AppserverIo\Appserver\ServletEngine\Utils\Error

Inheritance: implements AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface
Afficher le fichier Open project: appserver-io/appserver

Protected Properties

Свойство Type Description
$file integer The name of the file where the error has been triggered.
$line integer The line in the file where the error has been triggered.
$message integer The error message.
$statusCode integer The HTTP status code that has to be send back with the response.
$type integer The error type.

Méthodes publiques

Méthode Description
__construct ( integer $type, string $message, string $file, integer $line, integer $statusCode = 500 ) Initializes the error with the passed values.
getFile ( ) : integer Return's the name of the file where the error has been triggered.
getLine ( ) : integer Return's the line in the file where the error has been triggered.
getMessage ( ) : integer Return's the error message.
getStatusCode ( ) : integer Return's the HTTP status code that has to be send back with the response.
getType ( ) : integer Return's the error type.

Method Details

__construct() public méthode

Initializes the error with the passed values.
public __construct ( integer $type, string $message, string $file, integer $line, integer $statusCode = 500 )
$type integer The error type
$message string The error message
$file string The name of the file where the error has been triggered
$line integer The line in the file where the error has been triggered
$statusCode integer The HTTP status code that has to be send back with the response

getFile() public méthode

Return's the name of the file where the error has been triggered.
public getFile ( ) : integer
Résultat integer The filename

getLine() public méthode

Return's the line in the file where the error has been triggered.
public getLine ( ) : integer
Résultat integer The line number

getMessage() public méthode

Return's the error message.
public getMessage ( ) : integer
Résultat integer The error message

getStatusCode() public méthode

Return's the HTTP status code that has to be send back with the response.
public getStatusCode ( ) : integer
Résultat integer The HTTP status code

getType() public méthode

Return's the error type.
public getType ( ) : integer
Résultat integer The error type

Property Details

$file protected_oe property

The name of the file where the error has been triggered.
protected int $file
Résultat integer

$line protected_oe property

The line in the file where the error has been triggered.
protected int $line
Résultat integer

$message protected_oe property

The error message.
protected int $message
Résultat integer

$statusCode protected_oe property

The HTTP status code that has to be send back with the response.
protected int $statusCode
Résultat integer

$type protected_oe property

The error type.
protected int $type
Résultat integer