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. |
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. |
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 |
public getMessage ( ) : integer | ||
return | integer | The error message |
public getStatusCode ( ) : integer | ||
return | integer | The HTTP status code |
protected int $file | ||
return | integer |
protected int $line | ||
return | integer |
protected int $statusCode | ||
return | integer |