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

defaultError() protected method

Gets default error content
protected defaultError ( ErrorException $e = null ) : string
$e ErrorException optional An Exception
return string
    protected function defaultError($e = null)
    {
        if ($e instanceof \Exception && !$e instanceof \ErrorException) {
            \Scalr::logException($e);
        }
        return $this->getDefaultTemplate('Error', 'A webstite error has occured');
    }