Documentation

ExceptionHandler
in package

Table of Contents

ERROR  = [0 => 'ERROR', E_ERROR => 'ERROR', E_CORE_ERROR => 'ERROR', E_COMPILE_ERROR => 'ERROR', E_USER_ERROR => 'ERROR', E_RECOVERABLE_ERROR => 'ERROR', E_PARSE => 'PARSE']
NOTICE  = [E_NOTICE => 'NOTICE', E_USER_NOTICE => 'NOTICE', E_STRICT => 'STRICT', E_DEPRECATED => 'DEPRECATED', E_USER_DEPRECATED => 'DEPRECATED']
WARNING  = [E_WARNING => 'WARNING', E_CORE_WARNING => 'WARNING', E_COMPILE_WARNING => 'WARNING', E_USER_WARNING => 'WARNING']
__construct()  : mixed
debug()  : mixed
handleError()  : mixed
handleException()  : mixed
handleShutdown()  : mixed
betik sonlandığında sebep olan hata varsa exception olarak değerlendirilir
writeLog()  : mixed
bootstrap()  : mixed
ExceptionHandler constructor.
codeToString()  : int|mixed
print()  : mixed
getErrorLocation()  : array<string|int, mixed>
InternalServerError()  : mixed
Router errors

Constants

ERROR

public mixed ERROR = [0 => 'ERROR', E_ERROR => 'ERROR', E_CORE_ERROR => 'ERROR', E_COMPILE_ERROR => 'ERROR', E_USER_ERROR => 'ERROR', E_RECOVERABLE_ERROR => 'ERROR', E_PARSE => 'PARSE']

NOTICE

public mixed NOTICE = [E_NOTICE => 'NOTICE', E_USER_NOTICE => 'NOTICE', E_STRICT => 'STRICT', E_DEPRECATED => 'DEPRECATED', E_USER_DEPRECATED => 'DEPRECATED']

WARNING

public mixed WARNING = [E_WARNING => 'WARNING', E_CORE_WARNING => 'WARNING', E_COMPILE_WARNING => 'WARNING', E_USER_WARNING => 'WARNING']

Methods

debug()

public debug(Throwable $e) : mixed
Parameters
$e : Throwable
Return values
mixed

handleError()

public handleError( $code,  $message[, string $file = '' ], int $line) : mixed
Parameters
$code :
$message :
$file : string = ''
$line : int
Return values
mixed

handleException()

public handleException(Throwable $e) : mixed
Parameters
$e : Throwable
Return values
mixed

handleShutdown()

betik sonlandığında sebep olan hata varsa exception olarak değerlendirilir

public handleShutdown() : mixed
Return values
mixed

writeLog()

public writeLog( $message,  $code[, null $file = null ][, null $line = null ]) : mixed
Parameters
$message :
$code :
$file : null = null
$line : null = null
Return values
mixed

bootstrap()

ExceptionHandler constructor.

protected bootstrap() : mixed
Return values
mixed

codeToString()

protected codeToString( $code) : int|mixed
Parameters
$code :
Return values
int|mixed

print()

protected print( $message,  $code[, null $location = [] ][, null $exceptionType = null ]) : mixed
Parameters
$message :
$code :
$location : null = []
$exceptionType : null = null
Return values
mixed

getErrorLocation()

private getErrorLocation(Throwable $throwable) : array<string|int, mixed>
Parameters
$throwable : Throwable
Return values
array<string|int, mixed>

InternalServerError()

Router errors

private InternalServerError() : mixed
Return values
mixed

Search results