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 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.