onError

Defined in Application.cfc, invoked when an exception occurrs that was not caught by a cftry or cfcatch statement.

function onError(exception, eventName) {} → returns void

Argument Reference for the onError function

exception

Required: Yes
A structure containing the exception similar to what the cfcatch tag has.

eventName

Required: Yes
The name of the application event at which the exception occurred. If no onRequest method is defined then an empty string may be passed. Values:
  • onApplicationStart
  • onApplicationEnd
  • onRequest
  • onRequestStart
  • onSessionStart
  • onSessionEnd
  • [empty string]


Fork me on GitHub