LassoScript Utility
Basics Browse Detail


Tag Link [Fail] Category Error
Type Process Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation Internal Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0


[Fail] halts execution of the current page or [Protect] ... [/Protect] block. Takes two parameters: an integer error code and a string error message.


[FailError Code, 'Error Message']


Required Parameters
Error Code The error code to return.
Error Message The error message to return.


To report a fatal error and stop processing the current format file:

Use the [Fail] tag. Lasso will immediately halt processing of the current page or [Protect] ... [/Protect] block and report the error to the user or run any [Handle] ... [/Handle] tags that are present.

The following code will report an unknown error.

[Fail: -1, 'Unknown Error']