Scalr\Api\Rest\Application::callErrorHandler PHP Method

callErrorHandler() protected method

Calls error handler
protected callErrorHandler ( Exception $e = null ) : string
$e Exception optional An exception
return string
    protected function callErrorHandler($e = null)
    {
        return call_user_func_array(is_callable($this->error) ? $this->error : [$this, 'defaultError'], [$e]);
    }