|Line: 1 to 1|
|OopsException thrown anywhere in the code will redirect the
browser to a url based on the |
use Error; ... throw TWiki::OopsException( 'bathplugin', def => 'toestuck', web => $web, topic => $topic, params => [ 'bigtoe', 'hot tap' ] );
On this page:
ClassMethod new ($template,...)
ObjectMethod stringify ([$session]) -> $stringGenerates a string representation for the object. if a session is passed in, and the exception specifies a def, then that def is expanded. This is to allow internal expansion of oops exceptions for example when performing bulk operations, and also for debugging.
ObjectMethod redirect ($twiki)Generate a redirect to an 'oops' script for this exception. If the 'keep' parameter is set in the exception, it saves parameter values into the query as well. This is needed if the query string might get lost during a passthrough, due to a POST being redirected to a GET.