9use InvalidArgumentException;
15 const EXCEPTION_HANDLER =
"handleException";
16 const ERROR_HANDLER =
"handleError";
17 const SHUTDOWN_HANDLER =
"handleShutdown";
57 public function register();
An exception for terminatinating execution or to throw for unit testing.
Wraps ErrorException; mostly used for typing (at least now) to easily cleanup the stack trace of redu...
popHandler()
Removes the last handler in the stack and returns it.
sendHttpCode($code=null)
Should Whoops send HTTP error code to the browser if possible? Whoops will by default send HTTP code ...
clearHandlers()
Clears all handlers in the handlerStack, including the default PrettyPage handler.
writeToOutput($send=null)
Should Whoops push output directly to the client? If this is false, output will be returned by handle...
handleError($level, $message, $file=null, $line=null)
Converts generic PHP errors to \ErrorException instances, before passing them off to be handled.
handleException($exception)
Handles an exception, ultimately generating a Whoops error page.
allowQuit($exit=null)
Should Whoops allow Handlers to force the script to quit?
pushHandler($handler)
Pushes a handler to the end of the stack.
getHandlers()
Returns an array with all handlers, in the order they were added to the stack.
unregister()
Unregisters all handlers registered by this Whoops\Run instance.
silenceErrorsInPaths($patterns, $levels=10240)
Silence particular errors in particular files.
handleShutdown()
Special case to deal with Fatal errors and the like.
catch(Exception $e) $message
Whoops - php errors for cool kids.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file