CFABORT

The CFABORT tag stops processing of a page at the tag location. ColdFusion simply returns everything that was processed before the CFABORT tag. CFABORT is often used with conditional logic to stop processing a page because of a particular condition.

Syntax

<CFABORT SHOWERROR="error_message">
SHOWERROR

Optional. Specify the error you want to display when CFABORT executes. This error message appears in the standard ColdFusion error page.

Usage

When combining CFABORT and CFERROR, remember that CFERROR is meant to redirect output to a specified page. CFABORT is intended to halt processing immediately.

If the CFABORT tag does not contain a SHOWERROR attribute value, processing stops immediately and the page contents are shown all the way ...

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.