TWiki
>
TWiki Web
>
TWikiOopsExceptionDotPm
(revision 2) (raw view)
---+ Package =TWiki::OopsException= *extends* <tt>Error</tt> Exception used to raise a request to redirect to an Oops URL. An OopsException thrown anywhere in the code will redirect the browser to a url based on the =oops= script. =oops= requires a =template= parameter, that is the name of a 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. %TOC% ---++ ClassMethod *new* <tt>($template,...)</tt> * =template= is the name of an oops template The remaining parameters are interpreted as key-value pairs. The following keys are used: * =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 it's damndest 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. ---++ ObjectMethod *stringify* <tt>([$session]) -> $string</tt> Generates a string representation for the object. if a session is passed in, and the excpetion specifies a def, then that def is expanded. This is to allow internal expansion of oops exceptions for example when performing bulk operations.
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r2 - 2007-01-16
-
TWikiContributor
Home
Site map
Badania web
Dydaktyka web
Galeria web
Main web
MainPage web
Ogloszenia web
Pracownicy web
Publikacje web
Sandbox web
StronaGlowna web
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
Edit
Attach
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.TWikiOopsExceptionDotPm
.