TWiki::OopsException
oops
script. oops
requires
the name of an oops template file from the templates
directory.
This file will be expanded and the
parameter values passed to the exception instantiated. The
result will be shown in the browser.
Plugins may throw TWiki::OopsException. For example:
use Error; ... throw TWiki::OopsException( 'bathplugin', def => 'toestuck', web => $web, topic => $topic, params => [ 'bigtoe', 'hot tap' ] );
template
is the name of an oops template. e.g. 'bathplugin' refers to templates/oopsbathplugin.tmpl
web
will be used as the web for the oops
topic
will be used as the topic for the oops
def
- is the (optional) name of a TMPL:DEF within the template
keep
- if set, the exception handler should try its damnedest to retain parameter values from the query.
params
is a reference to an array of parameters. These will be substituted for %PARAM1%, %PARAM2% ... %PARAMn% in the template.
def
parameter, see the oopsattention
template.
NOTE: parameter values are automatically and unconditionally entity-encoded
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.