Oracle® Fusion Middleware Idoc Script Reference Guide 11g Release 1 (11.1.1) E10726-01 |
|
![]() Previous |
![]() Next |
Home > Idoc Script Reference Guide > Management and Configuratio... > 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