[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.
Note: Set error codes can only be accessed below where they are set in a format file. They will not propagate out of custom tags, included files or libraries.
[Error_SetErrorCode: Error Code]
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)]
Tag Link | [Error_SetErrorCode] | Category | Error |
---|---|---|---|
Type | Process | Data Source | Any |
Support | Preferred | Version | 3.0 |
Output Type | None | Security | None |
Implementation | Internal | Sets | Lasso 6.0, Lasso 5.0,LDML3x |
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft