SRW.CONTEXT_FAILURE
built-in exceptionThis exception stops the report execution and raises the following error message:
REP-1426: Running <construct_name> from incorrect context.
SRW.CONTEXT_FAILURE;
Reports Builder raises this exception when a Reports Builder packaged function or procedure is called in the wrong context. In this table, NO means that the function or procedure cannot be called in that context; YES means it can.
Name |
Parameter Form |
Data Model |
Format Trigger |
Report Trigger |
SRW.BREAK |
NO |
YES |
YES |
NO |
|
YES |
YES |
YES |
YES |
|
YES |
YES |
YES |
YES |
|
NO |
NO |
YES |
NO |
|
YES |
YES |
YES |
YES |
|
YES |
YES |
YES |
YES |
|
YES |
YES |
YES |
YES |
|
NO |
NO |
YES |
NO |
|
NO |
NO |
YES |
NO |
|
NO |
NO |
YES |
NO |
|
NO |
NO |
YES |
NO |
|
NO |
YES |
YES |
YES |
|
YES |
YES |
YES |
YES |
Suppose you want your own error message raised, instead of the default error message. You could handle this exception in the following way:
EXCEPTION
when SRW.CONTEXT_FAILURE then
SRW.MESSAGE (4000, 'Contact the Application
Development group regarding SRW.CONTEXT_FAILURE.');
raise SRW.PROGRAM_ABORT;
Copyright © 1984, 2005, Oracle. All rights reserved.