LassoScript Utility
Basics Browse Detail


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


[Error_SetErrorCode] sets the current error code to the specified value. This tag can be used to report a custom error message or can be used with any of the [Error_...] tags with an -ErrorCode parameter to report a standard error.


[Error_SetErrorCodeError Code]


Required Parameters
Error Code The error code which will be reported by subsequent calls to [Error_CurrentError: -ErrorCode].


To report a standard error:

Use the [Error_SetErrorMessage] and [Error_SetErrorCode] tags with any of the [Error_...] tags that report standard error messages and codes. The following example sets an error as if the current user did not have permission to perform an action.

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