LassoScript Utility
Basics Browse Detail

[Error_DeleteError]

Tag Link [Error_DeleteError] Category Error
Type Substitution Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source Any
Output Type String or Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

[Error_DeleteError] returns the error code or error message associated with an error during a -Delete action.

The value of this tag can compared against an error generated by Lasso or can be used to report an error.

Syntax

[Error_DeleteError] [Error_DeleteError-ErrorCode]

[If: (Error_DeleteError) == (Error_CurrentError)] ... [/If]

[Error_SetErrorMessage: (Error_DeleteError)]
[Error_SetErrorCode: (Error_DeleteError-ErrorCode)]

Parameters

Optional Parameters
-ErrorCode If specified the error code is returned. Otherwise the error message is returned.

Examples

To check whether the current error was a -Delete error:

Compare the [Error_CurrentError] tag with the [Error_DeleteError] tag. If they match then a -Delete error has occured.

[If: (Error_DeleteError) == (Error_CurrentError)]
  <br>A -Delete error has occurred.
[/If]

<br>A -Delete error has occurred.