Skip to main content
Version: 25.2

exception

  • global property — the most recent exception, or empty

  • object type

    • The value returned in a catch statement is an exception object (a property list with its objectType set to "exception", and "name", "reason", "location", “callStack”, and "asText" properties), rather than just the exception name. The name, reason, and location properties of this value are the same as the values returned by the exceptionName(), exceptionReason() and exceptionLocation() functions, which are considered obsolete. The asText property is set to the same value as the name, so displaying the exception will show that information.
  • type for "is a" operator +

     if param(3) is an exception then …
  • keyword -- throw exception command -- new syntax in 1.38

  • Related: try, throw