ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct (SystemFacade $system=null) | |
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... | |
getSilenceErrorsInPaths () | |
Returns an array with silent errors in path configuration. 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... | |
Private Member Functions | |
getInspector ($exception) | |
writeToOutputNow ($output) | |
Echo something to the browser. More... | |
Private Attributes | |
$isRegistered | |
$allowQuit = true | |
$sendOutput = true | |
$sendHttpCode = 500 | |
$handlerStack = [] | |
$silencedPatterns = [] | |
$system | |
$canThrowExceptions = true | |
Additional Inherited Members | |
Data Fields inherited from Whoops\RunInterface | |
const | EXCEPTION_HANDLER = "handleException" |
const | ERROR_HANDLER = "handleError" |
const | SHUTDOWN_HANDLER = "handleShutdown" |
Whoops\Run::__construct | ( | SystemFacade | $system = null | ) |
Whoops\Run::allowQuit | ( | $exit = null | ) |
Should Whoops allow Handlers to force the script to quit?
bool | int | $exit |
Implements Whoops\RunInterface.
Definition at line 152 of file Run.php.
Whoops\Run::clearHandlers | ( | ) |
Clears all handlers in the handlerStack, including the default PrettyPage handler.
Implements Whoops\RunInterface.
Whoops\Run::getHandlers | ( | ) |
Returns an array with all handlers, in the order they were added to the stack.
Implements Whoops\RunInterface.
|
private |
Whoops\Run::getSilenceErrorsInPaths | ( | ) |
Whoops\Run::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 |
Implements Whoops\RunInterface.
Definition at line 334 of file Run.php.
References $file, and $message.
Whoops\Run::handleException | ( | $exception | ) |
Handles an exception, ultimately generating a Whoops error page.
\Throwable | $exception |
Implements Whoops\RunInterface.
Definition at line 248 of file Run.php.
References $handler, $output, and header.
Whoops\Run::handleShutdown | ( | ) |
Special case to deal with Fatal errors and the like.
Implements Whoops\RunInterface.
Definition at line 367 of file Run.php.
References $error.
Whoops\Run::popHandler | ( | ) |
Removes the last handler in the stack and returns it.
Returns null if there"s nothing else to pop.
Implements Whoops\RunInterface.
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 |
Implements Whoops\RunInterface.
Definition at line 50 of file Run.php.
References $handler.
Whoops\Run::register | ( | ) |
Registers this instance as an error handler.
Implements Whoops\RunInterface.
Definition at line 111 of file Run.php.
Whoops\Run::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 |
Implements Whoops\RunInterface.
Definition at line 203 of file Run.php.
References $code.
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 |
Implements Whoops\RunInterface.
Definition at line 167 of file Run.php.
References array.
Whoops\Run::unregister | ( | ) |
Unregisters all handlers registered by this Whoops instance.
Implements Whoops\RunInterface.
Whoops\Run::writeToOutput | ( | $send = null | ) |
Should Whoops push output directly to the client? If this is false, output will be returned by handleException.
bool | int | $send |
Implements Whoops\RunInterface.
Definition at line 232 of file Run.php.
|
private |
Echo something to the browser.
string | $output |
Definition at line 398 of file Run.php.
References $output.