PHP Класс AppserverIo\Appserver\ServletEngine\Utils\Error

Автор: Tim Wagner ([email protected])
Наследование: implements AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

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() публичный метод

Return's the name of the file where the error has been triggered.
public getFile ( ) : integer
Результат integer The filename

getLine() публичный метод

Return's the line in the file where the error has been triggered.
public getLine ( ) : integer
Результат integer The line number

getMessage() публичный метод

Return's the error message.
public getMessage ( ) : integer
Результат integer The error message

getStatusCode() публичный метод

Return's the HTTP status code that has to be send back with the response.
public getStatusCode ( ) : integer
Результат integer The HTTP status code

getType() публичный метод

Return's the error type.
public getType ( ) : integer
Результат integer The error type

Описание свойств

$file защищенное свойство

The name of the file where the error has been triggered.
protected int $file
Результат integer

$line защищенное свойство

The line in the file where the error has been triggered.
protected int $line
Результат integer

$message защищенное свойство

The error message.
protected int $message
Результат integer

$statusCode защищенное свойство

The HTTP status code that has to be send back with the response.
protected int $statusCode
Результат integer

$type защищенное свойство

The error type.
protected int $type
Результат integer