LassoScript Utility
Basics Browse Detail

[Error_ReqColumnMissing]

Tag Link [Error_ReqColumnMissing] Category Error
Type Substitution Source Available No
Support Abbreviation 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_ReqColumnMissing] returns the error code or error message associated with a missing required column in a database action.

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

Syntax

[Error_ReqColumnMissing] [Error_ReqColumnMissing-ErrorCode]

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

[Error_SetErrorMessage: (Error_ReqColumnMissing)]
[Error_SetErrorCode: (Error_ReqColumnMissing-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 required column missing error:

Compare the [Error_CurrentError] tag with the [Error_ReqColumnMissing] tag. If they match then a required column missing error has occured.

[If: (Error_ReqColumnMissing) == (Error_CurrentError)]
  <br>A required column missing error has occurred.
[/If]

<br>A  required column missing error has occurred.