Throws a developer-specified exception, which can be caught
with a catch block.

throw([message] [, type] [, detail] [, errorcode] [, extendedinfo] [, object]) → returns Numeric

throw Argument Reference


Message that describes exception event.

Default: Custom

* A custom type
* Application
Do not enter another predefined type; types are not
generated by CFML applications. If you specify
Application, you need not specify a type for cfcatch. Values:
  • Custom
  • Application
  • Database
  • Template
  • Security
  • Object
  • MissingInclude
  • Expression
  • Lock
  • SearchEngine


Description of the event. CFML appends error position
to description; server uses this parameter if an error is
not caught by your code.


A custom error code that you supply.


A custom error code that you supply.


Requires the value of the cfobject tag name attribute.

Throws a Java exception from a CFML tag.

This attribute is mutually exclusive with all other
attributes of this tag.

Fork me on GitHub