CFERROR

Provides the ability to display customized HTML pages when errors occur. This allows you to maintain a consistent look and feel within your application even when errors occur.

Syntax

<CFERROR 
    TYPE="Request" or "Validation" or "Monitor" or "Exception"
    TEMPLATE="template_path"
    MAILTO="email_address"
    EXCEPTION="exception_type">
TYPE

Required. The type of error that this custom error page is designed to handle:

  • Specify Exception to handle exceptions.

  • Specify Validation to handle data input validation errors that occur when submitting a form. A validation error handler is only useful if placed inside the Application.cfm file.

  • Specify Monitor to set up an exception monitor.

  • Specify Request to handle errors that occur during the processing of ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.