<CFTRY> CFML <CFCATCH TYPE="exception_type">
HTML and CFML</CFCATCH> <CFCATCH TYPE="exception_type">
HTML and CFML</CFCATCH> ... </CFTRY>
Traps and processes predefined and developer-specified exceptions
within ColdFusion templates. The
CFCATCH tags allow you to
handle exceptions in your templates gracefully, without having to
abort processing. Exceptions occurring within
CFCATCH blocks can’t be handled by the same
CFTRY block governing the
CFCATCH block. At least one
CFCATCH block must be nested within a
CFCATCH tags are
processed in the order in which they are coded within a template.
Specifies the type of exception to trap. Valid entries are:
Catches application-level exceptions defined using the
Application type in the
Catches unexpected exceptions. This exception type should be coded as
CFCATCH within a
Catches developer-specified exceptions as defined with the
Catches exceptions raised when interacting with data sources.
Catches exceptions that occur when an expression’s evaluation results in an error.
Catches exceptions associated with the
such as timeouts, etc.
Catches exceptions that occur when an included template isn’t
found. This exception type covers exceptions thrown by the
Catches exceptions associated with ...