LassoScript Utility
Basics Browse Detail

[Lasso_ErrorReporting]

Tag Link [Lasso_ErrorReporting] Category Technical
Type Substitution Source Available No
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation Internal Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

[Lasso_ErrorReporting] sets the level or error reporting which should be used for the current page or context. The tag requires one parameter which specifies the level. The default error reporting level can be set in Lasso Administration.

None - The built-in error page will only report that an error has occurred without providing any information about the error. When the error page is shown the full error message will be logged. This level is suitable for use on production servers.

Minimal - The built-in error page will report what error occurred without information about the context in which the error occurred. This level is suitable for use on production servers where some troubleshooting information is desirable. This is the default level.

Full - The built-in error page reports full information about any errors that occurred. Error messages include the context in which the error occurred, the path to the file in which the error was located, and the parameters that were passed to the current context.

By default, the [Lasso_ErrorReporting] tag sets the error reporting level for the remainder of the current format file. A -Local keyword can optionally be used to set the error reporting level only for the current context. If -Local is used the error reporting will revert to the default at the end of the current include file, process block, or custom tag.

[Lasso_ErrorReporting] without any parameters will return the current error reporting level.

Syntax

[Lasso_ErrorReporting: 'none']

[Lasso_ErrorReporting: 'minimal']

[Lasso_ErrorReporting: 'full', -Local]

Parameters

Required Parameters
Level The error reporting level: 'none', 'minimal', or 'full'. If omitted the current level is returned by the tag.
Optional Parameters
Context Optional keyword sets the error reporting level globally using -Global, for the page -Page, or only for the current context -Local. The default if no keyword is specified is -Page. -Global required administrator permission.

Change Notes

This tag was introduced in Lasso Professional 7.0.2.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.