LassoScript Utility
Basics Browse Detail


Tag Link [Error_ModuleNotFound] 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


[Error_ModuleNotFound] returns the error code or error message associated with an error locating a data source module.

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


[Error_ModuleNotFound] [Error_ModuleNotFound-ErrorCode]

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

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


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


To check whether the current error was a module not found error:

Compare the [Error_CurrentError] tag with the [Error_ModuleNotFound] tag. If they match then a module not found error has occured.

[If: (Error_ModuleNotFound) == (Error_CurrentError)]
  <br>A module not found error has occurred.

<br>A module not found error has occurred.