Abort
Component Signature
<bx:Abort showerror=[string]
type=[string] />Attributes
Atrribute
Type
Required
Description
Default
Examples
Example of using abort() to stop processing after an error occurs
try {
// make a call to a non-existent function
firstName = userService.getUserById( 1 ).getFirstName();
}
// catch any errors
catch (any e) {
// dump the error to the browser
writeDump( e );
// abort further processing
bx:abort;
}
Example of using bx:abort to stop processing after an error occurs
Last updated
Was this helpful?
