Oracle9iAS Portal Developer Kit

show_error_page procedure

Contained in package wwerr_api_error_ui.

Call this procedure to display an HTML page for errors that don't get generated from Oracle Portal. The page also contains a Back link.

For example, during file upload mod_plsql checks the quota of the file being uploaded. If it detects a quota violation mod_plsql calls a URL (passed by Oracle Portal) to display the error message based on the type of quota violated.

procedure show_error_page

(

p_domain in varchar2,
p_sub_domain in varchar2 default 'all',
p_name in varchar2,
p_context in varchar2,
p1 in varchar2 default null,
p2 in varchar2 default null,
p3 in varchar2 default null,
p4 in varchar2 default null,
p5 in varchar2 default null,
p6 in varchar2 default null,
p7 in varchar2 default null,
p8 in varchar2 default null,
p9 in varchar2 default null

);

Version: Oracle Portal 9.0.2 or later

Parameters:

p_domain

The short name of the product or domain in which the error occurred.

Datatype: in varchar2

p_sub_domain

The subsystem that generated the error.

Datatype: in varchar2
Default: 'all'

 p_name

The name of the error within the domain and sub-domain.

Datatype: in varchar2

p_context

The name of the function in which the error occurred.

Datatype: in varchar2

p1, p2, ... p9

Passed-in values for the resulting display message.

Datatype: in varchar2
Default: null

Exceptions:

This function raises no user-defined exceptions.

Example:

...
when others then
wwerr_api_error_ui.show_error_page
(

p_domain => wwerr_api_error.DOMAIN_WWC,
p_sub_domain => 'err',
p_name => 'oracle_generic',
p_context => 'example.test',
p1 => sqlerrm

);
end;

Related topics

The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio