<cfabort>

Stops processing of a page at the tag location. CFML returns everything that was processed before the cfabort tag. The cfabort tag is often used with conditional logic to stop processing a page when a condition occurs.

Usage

<cfabort
    [type=string]
    [showerror=string]
>

This tag cannot have a body.

This tag is also supported within cfscript

Attributes

Attribute Description
type
(string, optional)

Define the abort type.

Allowed Values:

  • request (default): abort the entire request
  • page: abort the current page execution
showerror
(string, optional)

The error to display when cfabort executes. The error message displays in the standard CFML error page.

Examples

There are currently no examples for this tag.