Tags · Functions · Objects
Lucee Tag Reference
Choose a tag:

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

Body

This tag can't have a body.

Example

	<cfabort
		[showerror="string"]
		[type="string"]>
	
This tag is also supported within cfscript
	<cfscript>
		abort [string expression];
	</cfscript>

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name Type Required Description
showerror string No The error to display when cfabort executes.
The error message displays in the standard CFML error page. 
type string No define if only current page execution will aborted or the hole request.
values are "page" for the current page or "request" for all.