ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Public Member Functions | |
pushHandler ($handler) | |
Pushes a handler to the end of the stack. More... | |
popHandler () | |
Removes the last handler in the stack and returns it. More... | |
getHandlers () | |
Returns an array with all handlers, in the order they were added to the stack. More... | |
clearHandlers () | |
Clears all handlers in the handlerStack, including the default PrettyPage handler. More... | |
register () | |
Registers this instance as an error handler. More... | |
unregister () | |
Unregisters all handlers registered by this Whoops\Run instance. More... | |
allowQuit ($exit=null) | |
Should Whoops allow Handlers to force the script to quit? More... | |
silenceErrorsInPaths ($patterns, $levels=10240) | |
Silence particular errors in particular files. More... | |
sendHttpCode ($code=null) | |
writeToOutput ($send=null) | |
Should Whoops push output directly to the client? If this is false, output will be returned by handleException. More... | |
handleException (Exception $exception) | |
Handles an exception, ultimately generating a Whoops error page. More... | |
handleError ($level, $message, $file=null, $line=null) | |
Converts generic PHP errors to \ErrorException instances, before passing them off to be handled. More... | |
handleShutdown () | |
Special case to deal with Fatal errors and the like. More... | |
Data Fields | |
const | EXCEPTION_HANDLER = "handleException" |
const | ERROR_HANDLER = "handleError" |
const | SHUTDOWN_HANDLER = "handleShutdown" |
Protected Member Functions | |
getInspector (Exception $exception) | |
Protected Attributes | |
$isRegistered | |
$allowQuit = true | |
$sendOutput = true | |
$sendHttpCode = 500 | |
$handlerStack = array() | |
$silencedPatterns = array() | |
Private Member Functions | |
writeToOutputNow ($output) | |
Echo something to the browser. More... | |
Static Private Member Functions | |
static | isLevelFatal ($level) |
Private Attributes | |
$canThrowExceptions = true | |
Whoops\Run::allowQuit | ( | $exit = null | ) |
Should Whoops allow Handlers to force the script to quit?
bool | int | $exit |
Definition at line 148 of file Run.php.
Whoops\Run::clearHandlers | ( | ) |
Whoops\Run::getHandlers | ( | ) |
|
protected |
Whoops\Run::handleError | ( | $level, | |
$message, | |||
$file = null , |
|||
$line = null |
|||
) |
Converts generic PHP errors to \ErrorException instances, before passing them off to be handled.
This method MUST be compatible with set_error_handler.
int | $level | |
string | $message | |
string | $file | |
int | $line |
ErrorException |
Definition at line 309 of file Run.php.
References $file.
Whoops\Run::handleException | ( | Exception | $exception | ) |
Handles an exception, ultimately generating a Whoops error page.
Exception | $exception |
Definition at line 233 of file Run.php.
References exit.
Whoops\Run::handleShutdown | ( | ) |
Special case to deal with Fatal errors and the like.
Definition at line 339 of file Run.php.
|
staticprivate |
Whoops\Run::popHandler | ( | ) |
Whoops\Run::pushHandler | ( | $handler | ) |
Pushes a handler to the end of the stack.
InvalidArgumentException | If argument is not callable or instance of HandlerInterface |
Callable | HandlerInterface | $handler |
Definition at line 46 of file Run.php.
Whoops\Run::register | ( | ) |
Registers this instance as an error handler.
Definition at line 107 of file Run.php.
Whoops\Run::sendHttpCode | ( | $code = null | ) |
Whoops\Run::silenceErrorsInPaths | ( | $patterns, | |
$levels = 10240 |
|||
) |
Silence particular errors in particular files.
array | string | $patterns | List or a single regex pattern to match |
int | $levels | Defaults to E_STRICT | E_DEPRECATED |
Definition at line 163 of file Run.php.
Whoops\Run::unregister | ( | ) |
Whoops\Run::writeToOutput | ( | $send = null | ) |
|
private |
Echo something to the browser.
string | $output |
Definition at line 370 of file Run.php.