Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function THROW

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

Example

throw([string message,[string type,[string detail,[string errorcode,[string extendedInfo,[any object]]]]]]):void

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
message string  No Message that describes exception event.  
type string  No - 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  No addional detailed description of the exception.  
    errorcode string  No A custom error code that you supply.  
    extendedInfo string  No extended information to the exception.  
    object any  No Throws a Java exception from a CFML tag. This attribute is mutually exclusive with all other argments of this function.