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"

Syntax

<CFTHROW
    TYPE= "exception_type "
    MESSAGE="message"
    DETAIL= "detail_description "
    ERRORCODE= "error_code "
    EXTENDEDINFO= "additional_information">
TYPE

Optional. A custom type or the predefined type APPLICATION. None of the other predefined types should be specified because these types are not generated by ColdFusion 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.

MESSAGE

Optional. A message that describes ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.