Throw

Throws a developer-specified exception, which can be caught with a cfcatch tag

Throw( [ message [, type [, detail [, errorcode [, extendedInfo [, object ] ] ] ] ] ] )

Returns: void

Argument Description
message
string, optional

Message that describes exception event.

type
string, optional
  • 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.
detail
string, optional

addional detailed description of the exception.

errorcode
string, optional

A custom error code that you supply.

extendedInfo
string, optional

extended information to the exception.

object
any, optional

Throws a Java exception from a CFML tag. This attribute is mutually exclusive with all other argments of this function.

Examples

There are currently no examples for this function

See also