abortToErrorPage

Aborts the current page and displays an error message.

  • This function evaluates the StatusCode variable, and if a negative numeric value (-1) is returned, the display of the current page is aborted and is substituted with an error page.

  • The StatusMessage variable can be used as the error message string.

Type and Usage

Parameters

The only parameter is the error message string.

Output

Returns the error message string on an error page.

Example

Aborts the current page and displays Access Denied as an error message:

<$abortToErrorPage("Access Denied")$>

Aborts the current page and displays the value of the StatusMessage variable as an error message:

<$abortToErrorPage("<$StatusMessage$>")$>

See Also