public function handleError($code, $description, $file = null, $line = null, $context = null)
    {
        if (!$this->canCatchTheError($file)) {
            return;
        }

        $data = array(
            'type' => "Error",
            'code' => $code,
            'description' => $description,
            'file' => $file,
            'line' => $line,
            'context' => $context,
            'trace' => Debugger::trace(debug_backtrace()),
        );

        $this->logErrorData($data);
        $this->displayErrorData($data);
        $this->endProcesses();
    }
public function handleError($code, $description, $file = null, $line = null, $context = null)
    {
        if (!$this->canCatchTheError($file)) {
            return;
        }

        $data = array(
            'type' => "Error",
            'code' => $code,
            'description' => $description,
            'file' => $file,
            'line' => $line,
            'context' => $context,
            'trace' => Debugger::trace(debug_backtrace()),
        );

        $this->logErrorData($data);
        $this->displayErrorData($data);
        $this->endProcesses();
    }
public function handleError ( $ code , $ description , $ file = null , $ line = null , $ context = null ) { if ( ! $ this -> canCatchTheError ( $ file ) ) { return ; } $ data = array ( 'type' => "Error" , 'code' => $ code , 'description' => $ description , 'file' => $ file , 'line' => $ line , 'context' => $ context , 'trace' => Debugger :: trace ( debug_backtrace ( ) ) , ) ; $ this -> logErrorData ( $ data ) ; $ this -> displayErrorData ( $ data ) ; $ this -> endProcesses ( ) ; }
Set as the default error handler by Strata
@param int $code Code of error
@param string $description Error description
@param string|null $file File on which error occurred
@param int|null $line Line that triggered the error
@param array|null $context Context
@return bool True if error was handled
Set as the default error handler by Strata