40 if ($this->displayErrorDetails) {
46 while ($throwable = $throwable->getPrevious()) {
67 if (
$code = $throwable->getCode()) {
71 if (
$message = $throwable->getMessage()) {
75 if (
$file = $throwable->getFile()) {
79 if ($line = $throwable->getLine()) {
83 if ($trace = $throwable->getTraceAsString()) {
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
Abstract Slim application error handler.
logError($message)
Wraps the error_log function so that this can be easily tested.
writeToErrorLog($throwable)
Write to the error log if displayErrorDetails is false.
__construct($displayErrorDetails=false)
Constructor.
renderThrowableAsText($throwable)
Render error as Text.
Abstract Slim application handler.
catch(Exception $e) $message
Slim Framework (https://slimframework.com)
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file