ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 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) | |
Should Whoops send HTTP error code to the browser if possible? Whoops will by default send HTTP code 500, but you may wish to use 502, 503, or another 5xx family code. More... | |
writeToOutput ($send=null) | |
Should Whoops push output directly to the client? If this is false, output will be returned by handleException. More... | |
handleException ($exception) | |
Handles an exception, ultimately generating a Whoops error page. More... | |
handleError ($level, $message, $file=null, $line=null) | |
Converts generic PHP errors to 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" |
Definition at line 13 of file RunInterface.php.
Whoops\RunInterface::allowQuit | ( | $exit = null | ) |
Should Whoops allow Handlers to force the script to quit?
bool | int | $exit |
Implemented in Whoops\Run.
Whoops\RunInterface::clearHandlers | ( | ) |
Clears all handlers in the handlerStack, including the default PrettyPage handler.
Implemented in Whoops\Run.
Whoops\RunInterface::getHandlers | ( | ) |
Returns an array with all handlers, in the order they were added to the stack.
Implemented in Whoops\Run.
Whoops\RunInterface::handleError | ( | $level, | |
$message, | |||
$file = null , |
|||
$line = null |
|||
) |
Converts generic PHP errors to 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 |
Implemented in Whoops\Run.
Whoops\RunInterface::handleException | ( | $exception | ) |
Handles an exception, ultimately generating a Whoops error page.
\Throwable | $exception |
Implemented in Whoops\Run.
Whoops\RunInterface::handleShutdown | ( | ) |
Special case to deal with Fatal errors and the like.
Implemented in Whoops\Run.
Whoops\RunInterface::popHandler | ( | ) |
Removes the last handler in the stack and returns it.
Returns null if there"s nothing else to pop.
Implemented in Whoops\Run.
Whoops\RunInterface::pushHandler | ( | $handler | ) |
Pushes a handler to the end of the stack.
InvalidArgumentException | If argument is not callable or instance of HandlerInterface |
Callable | HandlerInterface | $handler |
Implemented in Whoops\Run.
Whoops\RunInterface::register | ( | ) |
Whoops\RunInterface::sendHttpCode | ( | $code = null | ) |
Should Whoops send HTTP error code to the browser if possible? Whoops will by default send HTTP code 500, but you may wish to use 502, 503, or another 5xx family code.
bool | int | $code |
Implemented in Whoops\Run.
Whoops\RunInterface::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 |
Implemented in Whoops\Run.
Whoops\RunInterface::unregister | ( | ) |
Whoops\RunInterface::writeToOutput | ( | $send = null | ) |
Should Whoops push output directly to the client? If this is false, output will be returned by handleException.
bool | int | $send |
Implemented in Whoops\Run.
const Whoops\RunInterface::ERROR_HANDLER = "handleError" |
Definition at line 16 of file RunInterface.php.
const Whoops\RunInterface::EXCEPTION_HANDLER = "handleException" |
Definition at line 15 of file RunInterface.php.
const Whoops\RunInterface::SHUTDOWN_HANDLER = "handleShutdown" |
Definition at line 17 of file RunInterface.php.