PHP 클래스 AppserverIo\Appserver\ServletEngine\Utils\Error

상속: implements AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface
파일 보기 프로젝트 열기: appserver-io/appserver

보호된 프로퍼티들

프로퍼티 타입 설명
$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