PHP Class AppserverIo\Appserver\ServletEngine\Utils\Error

Inheritance: implements AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface
Show file Open project: appserver-io/appserver

Protected Properties

Property 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.

Public Methods

Method 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 method

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 method

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

getLine() public method

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

getMessage() public method

Return's the error message.
public getMessage ( ) : integer
return integer The error message

getStatusCode() public method

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

getType() public method

Return's the error type.
public getType ( ) : integer
return integer The error type

Property Details

$file protected property

The name of the file where the error has been triggered.
protected int $file
return integer

$line protected property

The line in the file where the error has been triggered.
protected int $line
return integer

$message protected property

The error message.
protected int $message
return integer

$statusCode protected property

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

$type protected property

The error type.
protected int $type
return integer