ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
RunInterface.php
Go to the documentation of this file.
1<?php
7namespace Whoops;
8
9use InvalidArgumentException;
12
13interface RunInterface
14{
15 const EXCEPTION_HANDLER = "handleException";
16 const ERROR_HANDLER = "handleError";
17 const SHUTDOWN_HANDLER = "handleShutdown";
18
26 public function pushHandler($handler);
27
34 public function popHandler();
35
42 public function getHandlers();
43
50 public function clearHandlers();
51
57 public function register();
58
64 public function unregister();
65
72 public function allowQuit($exit = null);
73
81 public function silenceErrorsInPaths($patterns, $levels = 10240);
82
91 public function sendHttpCode($code = null);
92
100 public function writeToOutput($send = null);
101
109 public function handleException($exception);
110
125 public function handleError($level, $message, $file = null, $line = null);
126
130 public function handleShutdown();
131}
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...
$code
Definition: example_050.php:99
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
$handler