<cfthrow>

The cfthrow tag raises a developer-specified exception that can be caught with cfcatch tag having any of the following type specifications - cfcatch type = 'custom_type', cfcatch type = 'Application' 'cfcatch' type = 'Any'

Usage

<cfthrow
    [message=any]
    [detail=string]
    [errorcode=string]
    [type=string]
    [contextlevel=numeric]
    [object=any]
    [extendedinfo=string]
>

This tag cannot have a body.

This tag is also supported within cfscript

Attributes

Attribute Description
message
(any, optional)

A message that describes the exceptional event.

detail
(string, optional)

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

errorcode
(string, optional)

A custom error code that you supply.

type
(string, optional)

A custom type or the predefined type Application. Do not enter any other predefined types because they are not generated by CFML applications. If you specify the exception type Application, you need not specify a type for cfcatch, because the Application type is the default cfcatch type

contextlevel
(numeric, optional)

entry context level

object
(any, optional)

a native java exception Object, if this attribute is defined all other will be ignored

extendedinfo
(string, optional)

extended information to the exception.

Examples

There are currently no examples for this tag.