Lasso Soft Inc. > Home

[Fail]

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

  • Syntax
  • Parameters
[Fail: Error Code, 'Error Message']
Required Parameters
Error Code The error code to return.
Error Message The error message to return.
Examples

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']
Tag Link [Fail] Category Error
Type Process Data Source Any
Support Preferred Version 5.0
Output Type None Security None
Implementation Internal Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft