Ticket #200 (assigned enhancement)
Plugin object access for error/exception plugins
| Reported by: | barneyb | Owned by: | scorfield |
|---|---|---|---|
| Type: | enhancement | Priority: | normal |
| Milestone: | Fusebox 5.6 | Component: | Miscellaneous |
| Version: | 5.1 | Severity: | normal |
| Keywords: | Cc: |
Description
Currently there is no way to access the "this plugin" information in fuseactionException or processError plugin. From Sean in a thread on the fb5 mailing list:
I'll see if I can figure out a way to at least make the plugin name available... Perhaps inserting the following code into the file contents immediately after every <cfcatch..>
<cfset myFusebox.thisExceptionPhase = {phaseName} /> <cfset myFusebox.thisExceptionPlugin = {pluginName} />
Some care should probably be considered for nested cfcatch blocks (i.e. a cftry..cfcatch inside one of the top-level cfcatches), but that's probably rare enough to just document it and say "don't do that, use an include".
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
