Spec-Zone.ru › ColdFusion

onError

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

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

  • CF7+
  • BL 1.0.0+
  • See Also: application-cfc

    Argument Reference

    exception struct
    Required

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

    eventName string
    Required

    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]

    Examples
    Sample code invoking the onError function

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/onerror

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API