Lasso Soft Inc. > Home

[Error_Push]

[Error_Push] stores the current error code and error message in a stack and then resets the current error code to 0 and the current error message to empty. The stored error code and error message can later be retrieved using the [Error_Pop] tag.

[Error_Push] and [Error_Pop] can be used to maintain the current error code while executing code which might produce an error. For example, a custom tag can use error handling within itself without modifying the error condition for the remainder of code on the page. These tags can also be used to prevent an error condition from propagating into a protect block.

  • Syntax
  • Parameters
[Error_Push]
[Inline: ...]
	...
[/Inline]
[Error_Pop]

[Define_Tag: 'myTag']
	[Error_Push]
	... code which uses error handling
	[Error_Pop]
[/Define_Tag]

[Error_Push]
[Protect]
	...
	[Handle_Error]
		...
	[/Handle_Error]
[/Protect]
[Error_Pop]
Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Tag Link [Error_Push] Category Error
Type Process Data Source Any
Support Preferred Version 8.5.2
Output Type None Security None
Implementation LassoScript Sets Lasso 8.5

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