inc\error_handler.phpView Source

Show: PublicProtectedPrivateinherited
    Table of Contents
    Error Handler

    Defines function to catch and customize exceptions

    Author
    Sergey Dilong  
    Licence
    GPL-2.0  
    Package
    Temply-Account\Core  

    Functions

    function__ExceptionToArray(\Exception $e) : array

    Exception To Array

    Turnes \Exception object to Array

    Parameters
    NameTypeDescription
    $e\Exception

    Input data

    Returns
    TypeDescription
    arrayOutput array
    Details
    Package
    Temply-Account\Core  
    function_fatalErrorShutdownHandler() : void

    Fatal Error Shutdown Handler

    Extreme output and terminate

    Details
    Package
    Temply-Account\Core  
    function_handleError(integer $code, string $description, string $file = null, integer $line = null, array<mixed,string> $context = null) : void

    Hanlde error

    Format, log, terminate

    Parameters
    NameTypeDescription
    $codeinteger

    Error code

    $descriptionstring

    Description

    $filestring

    File

    $lineinteger

    Line

    $contextarray<mixed,string>

    Context

    Details
    Package
    Temply-Account\Core  
    function_handleException(\Exception $e) : void

    Global Exception Handler

    Writes logs and terminates, does all apiException's work

    Parameters
    NameTypeDescription
    $e\Exception

    Unhandled exception

    Details
    Package
    Temply-Account\Core  
    function_logError(array $data = array()) : void

    Writes report and terminates

    Function-helper

    Parameters
    NameTypeDescription
    $dataarray

    Error array

    Details
    Package
    Temply-Account\Core  
    See
    Recommended function  
    Documentation was generated by phpDocumentor v2.9.0.