Lasso Soft Inc. > Home

[Error_SetErrorCode]

[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.

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

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)]
Tag Link [Error_SetErrorCode] Category Error
Type Process Data Source Any
Support Preferred Version 3.0
Output Type None Security None
Implementation Sets 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. > Home

 

 

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