| LEHS - Log- and Exception Handling System for ORACLE | |||||
FRAMES NO FRAMES | ||||||
SUMMARY: FIELD | TYPE | METHOD | DETAIL: FIELD | TYPE | METHOD |
This Package is the user defined Interface for the Log-System.
For the Concepts of the Log-System itself please refer to the pldoc Pages of the PackagePKG_LEHS_SYSTEM
.Field Summary | |
BINARY_INTEGER | pc_buffer
Default Buffer Size for GET_LOG_DATA
|
LEHS_EXCEPTION_MESSAGES.nls_language%TYPE | pc_default_language
Default Language for the Exception Messages |
Type Summary | |
LEHS_APPLICATIONS.application%TYPE | pst_application_name()
Datatype for the Log-Application |
LEHS_EXCEPTION_MESSAGES.name%TYPE | pst_error_name()
Datatype for the Error Names of named Exception |
LEHS_TOPICS.topic_name%TYPE | pst_log_topic()
Datatype for the Log-Topics |
LEHS_TRANSACTIONS.transaction_id%TYPE | pst_log_transaction()
Datatype for the Log-Transaction |
VARYING ARRAY(9) OF VARCHAR2(2000) INDEX BY null | pt_error_arguments()
List-Type for the Exception Arguments Every named Exception is a parametrized Exception. |
TABLE OF lehs_log_table_basic%ROWTYPE INDEX BY null | pt_log_table()
Output-Datatype for the pipelined Function GET_LOG_DATA
|
Method Summary | |
| add_message(pi_application pst_application_name, pi_error_name pst_error_name, pi_error_code BINARY_INTEGER, pi_message CLOB, pi_show_error_stack BOOLEAN DEFAULT TRUE, pi_nls_language VARCHAR2 DEFAULT pc_default_language)
Add a new or change an existing Exception Message for the specified Application. |
| add_topic(pi_application pst_application_name, pi_topic VARCHAR2, pi_topic_parent VARCHAR2, pi_topic_predecessor VARCHAR2)
Adds a new Log-Topic to the specified Application. |
| add_topic(pi_application pst_application_name, pi_topic VARCHAR2, pi_topic_parent VARCHAR2, pi_position BINARY_INTEGER DEFAULT NULL)
Adds a new Log-Topic to the specified Application. |
| add_transaction_key(pi_application pst_application_name, pi_transaction_id pst_log_transaction, pi_key VARCHAR2, pi_value CLOB)
Adds an alphanumeric Key to the given Log-Transaction. |
| add_transaction_key(pi_application pst_application_name, pi_transaction_id pst_log_transaction, pi_key VARCHAR2, pi_value VARCHAR2)
Adds an alphanumeric Key to the given Log-Transaction. |
| add_transaction_key(pi_application pst_application_name, pi_transaction_id pst_log_transaction, pi_key VARCHAR2, pi_value NUMBER)
Adds a numeric Key to the given Log-Transaction. |
| add_transaction_key(pi_application pst_application_name, pi_transaction_id pst_log_transaction, pi_key VARCHAR2, pi_value DATE)
Adds a Date Key to the given Log-Transaction. |
| add_transaction_key(pi_application pst_application_name, pi_transaction_id pst_log_transaction, pi_key VARCHAR2, pi_value DSINTERVAL_UNCONSTRAINED)
Adds a Day to Second Interval Key to the given Log-Transaction. |
| add_transaction_key(pi_application pst_application_name, pi_transaction_id pst_log_transaction, pi_key VARCHAR2, pi_value YMINTERVAL_UNCONSTRAINED)
Adds a Year to Month Interval Key to the given Log-Transaction. |
| add_transaction_key(pi_application pst_application_name, pi_transaction_id pst_log_transaction, pi_key VARCHAR2, pi_value TIMESTAMP_UNCONSTRAINED)
Adds a Timestamp Key to the given Log-Transaction. |
| assert(pi_assertion BOOLEAN, pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments, pi_log BOOLEAN DEFAULT TRUE, pi_log_level VARCHAR2 DEFAULT NULL)
Checks the Assertion to TRUE and raises a named
Exception to the specified Application if the Assertion fails. |
| assert(pi_assertion BOOLEAN, pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments, pi_log_level VARCHAR2 DEFAULT NULL)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails. |
| assert_debug(pi_assertion BOOLEAN, pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level DEBUG . |
| assert_debug(pi_assertion BOOLEAN, pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level DEBUG . |
| assert_error(pi_assertion BOOLEAN, pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level ERROR . |
| assert_error(pi_assertion BOOLEAN, pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level ERROR . |
| assert_fatal(pi_assertion BOOLEAN, pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level FATAL . |
| assert_fatal(pi_assertion BOOLEAN, pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level FATAL . |
| assert_info(pi_assertion BOOLEAN, pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level INFO . |
| assert_info(pi_assertion BOOLEAN, pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level INFO . |
| assert_trace(pi_assertion BOOLEAN, pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level TRACE . |
| assert_trace(pi_assertion BOOLEAN, pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level TRACE . |
| assert_warn(pi_assertion BOOLEAN, pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level WARN . |
| assert_warn(pi_assertion BOOLEAN, pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Checks the Assertion to TRUE and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level WARN . |
| debug(pi_application pst_application_name, pi_message CLOB)
Logs a Message to a specific Application with the programable DEBUG Log-Level
|
| debug(pi_application pst_application_name, pi_topic VARCHAR2, pi_message CLOB)
Logs a Message to a specific Application with the programable DEBUG Log-Level. |
| end_log_transaction(pi_application pst_application_name)
Stops the actual open Log-Transaction to the specified Application |
| error(pi_application pst_application_name, pi_message CLOB)
Logs a Message to a specific Application with the programable ERROR Log-Level
|
| error(pi_application pst_application_name, pi_topic VARCHAR2, pi_message CLOB)
Logs a Message to a specific Application with the programable ERROR Log-Level. |
| fatal(pi_application pst_application_name, pi_message CLOB)
Logs a Message to a specific Application with the programable FATAL Log-Level
|
| fatal(pi_application pst_application_name, pi_topic VARCHAR2, pi_message CLOB)
Logs a Message to a specific Application with the programable FATAL Log-Level. |
PKG_LEHS.pst_error_name | get_last_exception_name(pi_application PKG_LEHS.pst_application_name)
|
VARCHAR2 | get_version()
Returns the Version of LEHS |
| handle_exception(pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application. |
| handle_exception_and_log(pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments, pi_log_level VARCHAR2 DEFAULT NULL)
Raises a named Exception to the specified Application and logs it to the specified Application. |
| handle_exception_and_log(pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments, pi_log_level VARCHAR2 DEFAULT NULL)
Raises a named Exception to the specified Application and logs it to the specified Application. |
| handle_exception_and_log_debug(pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level DEBUG . |
| handle_exception_and_log_debug(pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level DEBUG . |
| handle_exception_and_log_error(pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level ERROR . |
| handle_exception_and_log_error(pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level ERROR . |
| handle_exception_and_log_fatal(pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level FATAL . |
| handle_exception_and_log_fatal(pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level FATAL . |
| handle_exception_and_log_info(pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level INFO . |
| handle_exception_and_log_info(pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level INFO . |
| handle_exception_and_log_trace(pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level TRACE . |
| handle_exception_and_log_trace(pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level TRACE . |
| handle_exception_and_log_warn(pi_application pst_application_name, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level WARN . |
| handle_exception_and_log_warn(pi_application pst_application_name, pi_topic VARCHAR2, pi_error_name pst_error_name, pi_error_arguments pt_error_arguments)
Raises a named Exception to the specified Application and logs it to the specified Application with the programmable Log-Level WARN . |
| info(pi_application pst_application_name, pi_message CLOB)
Logs a Message to a specific Application with the programable INFO Log-Level
|
| info(pi_application pst_application_name, pi_topic VARCHAR2, pi_message CLOB)
Logs a Message to a specific Application with the programable INFO Log-Level. |
BOOLEAN | is_debug_enabled(pi_application pst_application_name)
Is the DEBUG -Mode enabled at the specified Application. |
BOOLEAN | is_error_enabled(pi_application pst_application_name)
Is the ERROR -Mode enabled at the specified Application. |
BOOLEAN | is_fatal_enabled(pi_application pst_application_name)
Is the FATAL -Mode enabled at the specified Application. |
BOOLEAN | is_info_enabled(pi_application pst_application_name)
Is the INFO -Mode enabled at the specified Application. |
BOOLEAN | is_log_level_enabled(pi_application pst_application_name, pi_log_level VARCHAR2)
Is the specified Log-Level enabled at the specified Application. |
BOOLEAN | is_named_exception(pi_application pst_application_name, pi_error_code BINARY_INTEGER)
Does the given Error Code correspond to any named Exception of the specified Application? |
BOOLEAN | is_named_exception(pi_application pst_application_name, pi_error_code BINARY_INTEGER, pi_error_name pst_error_name)
Does the given Error Code correspond to the given named Exception of the specified Application? |
BOOLEAN | is_trace_enabled(pi_application pst_application_name)
Is the TRACE -Mode enabled at the specified Application. |
BOOLEAN | is_warn_enabled(pi_application pst_application_name)
Is the WARN -Mode enabled at the specified Application. |
| join_log_transaction(pi_application pst_application_name, pi_transaction_id pst_log_transaction)
Joins an open Log-Transaction with a Log-Transaction Number got by START_LOG_TRANSACTION
|
| log(pi_application pst_application_name, pi_log_level VARCHAR2, pi_message CLOB)
Logs a Message to a specific Application with a predefined Log-Level |
| log(pi_application pst_application_name, pi_topic VARCHAR2, pi_log_level VARCHAR2, pi_message CLOB)
Logs a Message to a specific Application with a predefined Log-Level. |
| log_exception(pi_application pst_application_name, pi_topic VARCHAR2 DEFAULT NULL, pi_log_app_exception BOOLEAN DEFAULT FALSE, pi_log_level VARCHAR2 DEFAULT NULL)
Logs an unhandled, unnamed Exception to the specified Application. |
| log_exception_debug(pi_application pst_application_name, pi_topic VARCHAR2 DEFAULT NULL, pi_log_app_exception BOOLEAN DEFAULT FALSE)
Logs an unhandled, unnamed Exception to the specified Application and logs it with the programmable Log-Level DEBUG . |
| log_exception_error(pi_application pst_application_name, pi_topic VARCHAR2 DEFAULT NULL, pi_log_app_exception BOOLEAN DEFAULT FALSE)
Logs an unhandled, unnamed Exception to the specified Application and logs it with the programmable Log-Level ERROR . |
| log_exception_fatal(pi_application pst_application_name, pi_topic VARCHAR2 DEFAULT NULL, pi_log_app_exception BOOLEAN DEFAULT FALSE)
Logs an unhandled, unnamed Exception to the specified Application and logs it with the programmable Log-Level FATAL . |
| log_exception_info(pi_application pst_application_name, pi_topic VARCHAR2 DEFAULT NULL, pi_log_app_exception BOOLEAN DEFAULT FALSE)
Logs an unhandled, unnamed Exception to the specified Application and logs it with the programmable Log-Level INFO . |
| log_exception_trace(pi_application pst_application_name, pi_topic VARCHAR2 DEFAULT NULL, pi_log_app_exception BOOLEAN DEFAULT FALSE)
Logs an unhandled, unnamed Exception to the specified Application and logs it with the programmable Log-Level TRACE . |
| log_exception_warn(pi_application pst_application_name, pi_topic VARCHAR2 DEFAULT NULL, pi_log_app_exception BOOLEAN DEFAULT FALSE)
Logs an unhandled, unnamed Exception to the specified Application and logs it with the programmable Log-Level WARN . |
| resync()
Resynchronize the internal Buffer Cache (useful, when the Data of the Log-System has been changed. |
| resync_on_modification()
Resynchronize the internal Buffer Cache when the Log-Application has been modified by PKG_LEHS_SYSTEM . |
pst_log_transaction | start_log_transaction(pi_application pst_application_name)
Starts a new Log-Transaction to the specific Log-Application |
| trace(pi_application pst_application_name, pi_message CLOB)
Logs a Message to a specific Application with the programable TRACE Log-Level
|
| trace(pi_application pst_application_name, pi_topic VARCHAR2, pi_message CLOB)
Logs a Message to a specific Application with the programable TRACE Log-Level. |
| warn(pi_application pst_application_name, pi_message CLOB)
Logs a Message to a specific Application with the programable WARN Log-Level
|
| warn(pi_application pst_application_name, pi_topic VARCHAR2, pi_message CLOB)
Logs a Message to a specific Application with the programable WARN Log-Level. |
Field Detail |
public BINARY_INTEGER pc_buffer
GET_LOG_DATA
public LEHS_EXCEPTION_MESSAGES.nls_language%TYPE pc_default_language
Type Detail |
public VARYING ARRAY(9) OF VARCHAR2(2000) INDEX BY null pt_error_arguments()
HANDLE_EXCEPTION
and
HANDLE_EXCEPTION_AND_LOG
for an Example
public TABLE OF lehs_log_table_basic%ROWTYPE INDEX BY null pt_log_table()
GET_LOG_DATA
public LEHS_EXCEPTION_MESSAGES.name%TYPE pst_error_name()
public LEHS_APPLICATIONS.application%TYPE pst_application_name()
public LEHS_TOPICS.topic_name%TYPE pst_log_topic()
public LEHS_TRANSACTIONS.transaction_id%TYPE pst_log_transaction()
Method Detail |
public log(pi_application pst_application_name,
pi_log_level VARCHAR2,
pi_message CLOB)
pi_application
-
Log-Application of the applied Messagepi_log_level
-
predefined Log-Levelpi_message
-
Log Messagepublic log(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_log_level VARCHAR2,
pi_message CLOB)
pi_application
-
Log-Application of the applied Messagepi_topic
-
Log-Topic of the applied Messagepi_log_level
-
predefined Log-Levelpi_message
-
Log Messagepublic fatal(pi_application pst_application_name,
pi_message CLOB)
FATAL
Log-Level
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic fatal(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_message CLOB)
FATAL
Log-Level.
This Message applies to the given Log-Topic
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic error(pi_application pst_application_name,
pi_message CLOB)
ERROR
Log-Level
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic error(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_message CLOB)
ERROR
Log-Level.
This Message applies to the given Log-Topic
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic warn(pi_application pst_application_name,
pi_message CLOB)
WARN
Log-Level
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic warn(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_message CLOB)
WARN
Log-Level.
This Message applies to the given Log-Topic
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic info(pi_application pst_application_name,
pi_message CLOB)
INFO
Log-Level
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic info(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_message CLOB)
INFO
Log-Level.
This Message applies to the given Log-Topic
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic debug(pi_application pst_application_name,
pi_message CLOB)
DEBUG
Log-Level
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic debug(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_message CLOB)
DEBUG
Log-Level.
This Message applies to the given Log-Topic
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic trace(pi_application pst_application_name,
pi_message CLOB)
TRACE
Log-Level
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic trace(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_message CLOB)
TRACE
Log-Level.
This Message applies to the given Log-Topic
pi_application
-
Log-Application of the applied Messagepi_message
-
Log Messagepublic pst_log_transaction start_log_transaction(pi_application pst_application_name)
pi_application
-
Log-Application the Transaction applies topublic join_log_transaction(pi_application pst_application_name,
pi_transaction_id pst_log_transaction)
START_LOG_TRANSACTION
pi_application
-
Log-Application which the Log-Transaction Number applies topi_transaction_id
-
Log-Transaction Number by START_LOG_TRANSACTION
public end_log_transaction(pi_application pst_application_name)
pi_application
-
Log-Application where the actual Transaction should be stoppedpublic BOOLEAN is_trace_enabled(pi_application pst_application_name)
TRACE
-Mode enabled at the specified Application.
In fact that means, is the maximum Log-Level of the Log-Application
higher or equal to the programmable Log-Level TRACE
pi_application
-
Log-Application to be checkedTRUE
... TRACE
-Mode is enabledFALSE
... TRACE
-Mode is not enabledpublic BOOLEAN is_debug_enabled(pi_application pst_application_name)
DEBUG
-Mode enabled at the specified Application.
In fact that means, is the maximum Log-Level of the Log-Application
higher or equal to the programmable Log-Level DEBUG
pi_application
-
Log-Application to be checkedTRUE
... DEBUG
-Mode is enabledFALSE
... DEBUG
-Mode is not enabledpublic BOOLEAN is_info_enabled(pi_application pst_application_name)
INFO
-Mode enabled at the specified Application.
In fact that means, is the maximum Log-Level of the Log-Application
higher or equal to the programmable Log-Level INFO
pi_application
-
Log-Application to be checkedTRUE
... INFO
-Mode is enabledFALSE
... INFO
-Mode is not enabledpublic BOOLEAN is_warn_enabled(pi_application pst_application_name)
WARN
-Mode enabled at the specified Application.
In fact that means, is the maximum Log-Level of the Log-Application
higher or equal to the programmable Log-Level WARN
pi_application
-
Log-Application to be checkedTRUE
... WARN
-Mode is enabledFALSE
... WARN
-Mode is not enabledpublic BOOLEAN is_error_enabled(pi_application pst_application_name)
ERROR
-Mode enabled at the specified Application.
In fact that means, is the maximum Log-Level of the Log-Application
higher or equal to the programmable Log-Level ERROR
pi_application
-
Log-Application to be checkedTRUE
... ERROR
-Mode is enabledFALSE
... ERROR
-Mode is not enabledpublic BOOLEAN is_fatal_enabled(pi_application pst_application_name)
FATAL
-Mode enabled at the specified Application.
In fact that means, is the maximum Log-Level of the Log-Application
higher or equal to the programmable Log-Level FATAL
pi_application
-
Log-Application to be checkedTRUE
... FATAL
-Mode is enabledFALSE
... FATAL
-Mode is not enabledpublic BOOLEAN is_log_level_enabled(pi_application pst_application_name,
pi_log_level VARCHAR2)
pi_application
-
Log-Application to be checkedTRUE
... given Log-Level is enabledFALSE
... given Log-Level is not enabledpublic handle_exception(pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception ( 'Log Application' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log(pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments,
pi_log_level VARCHAR2 DEFAULT NULL)
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic Contentpi_log_level
-
optional Log-Level for the Exception Log. If omitted
or the Value is NULL
the Exception Log-Level
of the Application will be takenORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments,
pi_log_level VARCHAR2 DEFAULT NULL)
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'A Log Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic Contentpi_log_level
-
optional Log-Level for the Exception Log. If omitted
or the Value is NULL
the Exception Log-Level
of the Application will be takenORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_fatal(pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
FATAL
.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_fatal(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
FATAL
.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'A Log Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_error(pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
ERROR
.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_error(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
ERROR
.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'A Log Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_warn(pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
WARN
.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_warn(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
WARN
.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'A Log Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_info(pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
INFO
.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_info(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
INFO
.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'A Log Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_debug(pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
DEBUG
.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_debug(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
DEBUG
.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'A Log Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_trace(pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRACE
.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic handle_exception_and_log_trace(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRACE
.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Error at Calculation Step %1: Wrong Value %2. Allowed Values: %3 PKG_LEHS.handle_exception_and_log ( 'Log Application' ,'A Log Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,v_wrong_value ,v_allowed_values ) )
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments,
pi_log BOOLEAN DEFAULT TRUE,
pi_log_level VARCHAR2 DEFAULT NULL)
TRUE
and raises a named
Exception to the specified Application if the Assertion fails.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )Optionally if you set the Parameter
pi_log
to TRUE
(Default: TRUE
) then a failed Assertion will also be logged
with the Exception of Parameter pi_log_level
.
pi_log_level
will be omitted (or explicitly
given NULL
) then the Exception Log-Level of the Log-Application
will be taken.
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic Contentpi_log
-
Should a failed Assertion also be logged?pi_log_level
-
optional Log-Level for the Exception Log. If omitted
or the Value is NULL
the Exception Log-Level
of the Application will be takenORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments,
pi_log_level VARCHAR2 DEFAULT NULL)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'some Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )By calling this Procedure a failed Assertion will always be logged with the Log-Level of Parameter
pi_log_level
because you give a
Log-Topic. If the Parameter pi_log_level
has be omitted
(or been explicitly set to NULL) then the Exception Log-Level
of the Log-Application will be taken.
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic Contentpi_log_level
-
optional Log-Level for the Exception Log. If omitted
or the Value is NULL
the Exception Log-Level
of the Application will be takenORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_fatal(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level FATAL
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'CALC_STEP_WRONG_VALUE' ,'some Topic' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_fatal(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level FATAL
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'some Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_error(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level ERROR
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'CALC_STEP_WRONG_VALUE' ,'some Topic' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_error(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level ERROR
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'some Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_warn(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level WARN
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'CALC_STEP_WRONG_VALUE' ,'some Topic' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_warn(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level WARN
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'some Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_info(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level INFO
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'CALC_STEP_WRONG_VALUE' ,'some Topic' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_info(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level INFO
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'some Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_debug(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level DEBUG
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'CALC_STEP_WRONG_VALUE' ,'some Topic' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_debug(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level DEBUG
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'some Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_trace(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level TRACE
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The List of dynamic Content will be used to replace the Placeholder
within the Exception Message with the real Values during the Runtime.
Example:
... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'CALC_STEP_WRONG_VALUE' ,'some Topic' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic assert_trace(pi_assertion BOOLEAN,
pi_application pst_application_name,
pi_topic VARCHAR2,
pi_error_name pst_error_name,
pi_error_arguments pt_error_arguments)
TRUE
and raises a named Exception
to the specified Application and logs it to the specified Application
if the Assertion fails with the programmable Log-Level TRACE
.
If the Assertion fails then the Exception to the given Error Name will be
raised.
The Exception Message will be applied to the given Log-Topic.... -- Message for Exception CALC_STEP_WRONG_VALUE: -- Assertion failed Step %1: %2 PKG_LEHS.assert ( v_variable IS NOT NULL ,'Log Application' ,'some Topic' ,'CALC_STEP_WRONG_VALUE' ,PKG_LEHS.pt_error_arguments ( TO_CHAR(1) ,'v_variable IS NULL' ) )
pi_assertion
-
Assertion to be TRUE
pi_application
-
Name of the Application the named Exception applies topi_topic
-
Log-Topic the Exception Message applies to at the Logpi_error_name
-
Name of the named Exceptionpi_error_arguments
-
List of the dynamic ContentORA-20???
-
User defined Exception as deposited to the named Exceptionpublic log_exception(pi_application pst_application_name,
pi_topic VARCHAR2 DEFAULT NULL,
pi_log_app_exception BOOLEAN DEFAULT FALSE,
pi_log_level VARCHAR2 DEFAULT NULL)
CREATE OR REPLACE PROCEDURE xyz IS ... BEGIN .. EXCEPTION WHEN OTHERS THEN PKG_LEHS.log_exception ('App1', 'Topic1'); RAISE; END;
pi_application
-
Application the Exception Message should be logged topi_topic
-
Log-Topic the logged Exception Message should be assigned topi_log_app_exception
-
Should a user defined named Exception of the
Application be logged? (Default: FALSE
)NULL
then the Default will be taken.pi_log_level
-
optional Log-Level for the Exception Log. If omitted
or the Value is NULL
the Exception Log-Level
of the Application will be takenpublic log_exception_fatal(pi_application pst_application_name,
pi_topic VARCHAR2 DEFAULT NULL,
pi_log_app_exception BOOLEAN DEFAULT FALSE)
FATAL
.
The Exception Message will be assigned to the given Log-Topic.CREATE OR REPLACE PROCEDURE xyz IS ... BEGIN .. EXCEPTION WHEN OTHERS THEN PKG_LEHS.log_exception ('App1', 'Topic1'); RAISE; END;
pi_application
-
Application the Exception Message should be logged topi_topic
-
Log-Topic the logged Exception Message should be assigned topi_log_app_exception
-
Should a user defined named Exception of the
Application be logged? (Default: FALSE
)NULL
then the Default will be taken.public log_exception_error(pi_application pst_application_name,
pi_topic VARCHAR2 DEFAULT NULL,
pi_log_app_exception BOOLEAN DEFAULT FALSE)
ERROR
.
The Exception Message will be assigned to the given Log-Topic.CREATE OR REPLACE PROCEDURE xyz IS ... BEGIN .. EXCEPTION WHEN OTHERS THEN PKG_LEHS.log_exception ('App1', 'Topic1'); RAISE; END;
pi_application
-
Application the Exception Message should be logged topi_topic
-
Log-Topic the logged Exception Message should be assigned topi_log_app_exception
-
Should a user defined named Exception of the
Application be logged? (Default: FALSE
)NULL
then the Default will be taken.public log_exception_warn(pi_application pst_application_name,
pi_topic VARCHAR2 DEFAULT NULL,
pi_log_app_exception BOOLEAN DEFAULT FALSE)
WARN
.
The Exception Message will be assigned to the given Log-Topic.CREATE OR REPLACE PROCEDURE xyz IS ... BEGIN .. EXCEPTION WHEN OTHERS THEN PKG_LEHS.log_exception ('App1', 'Topic1'); RAISE; END;
pi_application
-
Application the Exception Message should be logged topi_topic
-
Log-Topic the logged Exception Message should be assigned topi_log_app_exception
-
Should a user defined named Exception of the
Application be logged? (Default: FALSE
)NULL
then the Default will be taken.public log_exception_info(pi_application pst_application_name,
pi_topic VARCHAR2 DEFAULT NULL,
pi_log_app_exception BOOLEAN DEFAULT FALSE)
INFO
.
The Exception Message will be assigned to the given Log-Topic.CREATE OR REPLACE PROCEDURE xyz IS ... BEGIN .. EXCEPTION WHEN OTHERS THEN PKG_LEHS.log_exception ('App1', 'Topic1'); RAISE; END;
pi_application
-
Application the Exception Message should be logged topi_topic
-
Log-Topic the logged Exception Message should be assigned topi_log_app_exception
-
Should a user defined named Exception of the
Application be logged? (Default: FALSE
)NULL
then the Default will be taken.public log_exception_debug(pi_application pst_application_name,
pi_topic VARCHAR2 DEFAULT NULL,
pi_log_app_exception BOOLEAN DEFAULT FALSE)
DEBUG
.
The Exception Message will be assigned to the given Log-Topic.CREATE OR REPLACE PROCEDURE xyz IS ... BEGIN .. EXCEPTION WHEN OTHERS THEN PKG_LEHS.log_exception ('App1', 'Topic1'); RAISE; END;
pi_application
-
Application the Exception Message should be logged topi_topic
-
Log-Topic the logged Exception Message should be assigned topi_log_app_exception
-
Should a user defined named Exception of the
Application be logged? (Default: FALSE
)NULL
then the Default will be taken.public log_exception_trace(pi_application pst_application_name,
pi_topic VARCHAR2 DEFAULT NULL,
pi_log_app_exception BOOLEAN DEFAULT FALSE)
TRACE
.
The Exception Message will be assigned to the given Log-Topic.CREATE OR REPLACE PROCEDURE xyz IS ... BEGIN .. EXCEPTION WHEN OTHERS THEN PKG_LEHS.log_exception ('App1', 'Topic1'); RAISE; END;
pi_application
-
Application the Exception Message should be logged topi_topic
-
Log-Topic the logged Exception Message should be assigned topi_log_app_exception
-
Should a user defined named Exception of the
Application be logged? (Default: FALSE
)NULL
then the Default will be taken.public BOOLEAN is_named_exception(pi_application pst_application_name,
pi_error_code BINARY_INTEGER)
pi_application
-
Log-Application the Error Code should be checked againstpi_error_code
-
Error Code as got by the BuiltIn-Function SQLCODE
TRUE
... The Error-Code is assigned to a
registered named Exception of the specified Application
FALSE
... The Error-Code is not
assigned to any registered named Exception of
the specified Application
public BOOLEAN is_named_exception(pi_application pst_application_name,
pi_error_code BINARY_INTEGER,
pi_error_name pst_error_name)
pi_application
-
Log-Application the Error Code should be checked against the named Exceptionpi_error_code
-
Error Code as got by the BuiltIn-Function SQLCODE
pi_error_name
-
named Exception of the specified Application to be checkedTRUE
... The Error-Code is assigned to the
given named Exception of the specified Application
FALSE
... The Error-Code is not
assigned to the given named Exception of
the specified Application
public add_transaction_key(pi_application pst_application_name,
pi_transaction_id pst_log_transaction,
pi_key VARCHAR2,
pi_value CLOB)
USER_LEHS_TRANSACTIONS
.
pi_application
-
Log-Application the Keyword should be addedpi_transaction_id
-
Transaction-ID the Keyword should be addedpi_key
-
Name of the Keypi_value
-
Value of the KeyORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20008
-
[LOG TRANSACTION NOT EXISTS] The given Log-Transaction
doesn't exist to the specified Log-ApplicationORA-20008
-
[LOG TRANSACTION NOT OPEN] The specified Log-Transaction
is no longer in State OPEN
for the
specified Log-Applicationpublic add_transaction_key(pi_application pst_application_name,
pi_transaction_id pst_log_transaction,
pi_key VARCHAR2,
pi_value VARCHAR2)
USER_LEHS_TRANSACTIONS
.
pi_application
-
Log-Application the Keyword should be addedpi_transaction_id
-
Transaction-ID the Keyword should be addedpi_key
-
Name of the Keypi_value
-
Value of the KeyORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20008
-
[LOG TRANSACTION NOT EXISTS] The given Log-Transaction
doesn't exist to the specified Log-ApplicationORA-20008
-
[LOG TRANSACTION NOT OPEN] The specified Log-Transaction
is no longer in State OPEN
for the
specified Log-Applicationpublic add_transaction_key(pi_application pst_application_name,
pi_transaction_id pst_log_transaction,
pi_key VARCHAR2,
pi_value NUMBER)
USER_LEHS_TRANSACTIONS
.
Within the View USER_LEHS_TRANSACTIONS
the Value will be
formatted automatically with the builtin Function TO_CHAR
,
which takes advantage of the actual Session-Parameter
NLS_NUMERIC_CHARACTERS
.
pi_application
-
Log-Application the Keyword should be addedpi_transaction_id
-
Transaction-ID the Keyword should be addedpi_key
-
Name of the Keypi_value
-
Value of the KeyORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20008
-
[LOG TRANSACTION NOT EXISTS] The given Log-Transaction
doesn't exist to the specified Log-ApplicationORA-20008
-
[LOG TRANSACTION NOT OPEN] The specified Log-Transaction
is no longer in State OPEN
for the
specified Log-Applicationpublic add_transaction_key(pi_application pst_application_name,
pi_transaction_id pst_log_transaction,
pi_key VARCHAR2,
pi_value DATE)
USER_LEHS_TRANSACTIONS
.
Within the View USER_LEHS_TRANSACTIONS
the Value will be
formatted automatically with the builtin Function TO_CHAR
,
which takes advantage of the actual Session-Parameter
NLS_DATE_FORMAT
.
pi_application
-
Log-Application the Keyword should be addedpi_transaction_id
-
Transaction-ID the Keyword should be addedpi_key
-
Name of the Keypi_value
-
Value of the KeyORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20008
-
[LOG TRANSACTION NOT EXISTS] The given Log-Transaction
doesn't exist to the specified Log-ApplicationORA-20008
-
[LOG TRANSACTION NOT OPEN] The specified Log-Transaction
is no longer in State OPEN
for the
specified Log-Applicationpublic add_transaction_key(pi_application pst_application_name,
pi_transaction_id pst_log_transaction,
pi_key VARCHAR2,
pi_value DSINTERVAL_UNCONSTRAINED)
USER_LEHS_TRANSACTIONS
.
Within the View USER_LEHS_TRANSACTIONS
the Value will be
formatted automatically with the builtin Function TO_CHAR
,
but unfortunately there is no separate Session-Parameter where you
can configure the Format of the Character Conversion of this Parameter.
pi_application
-
Log-Application the Keyword should be addedpi_transaction_id
-
Transaction-ID the Keyword should be addedpi_key
-
Name of the Keypi_value
-
Value of the KeyORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20008
-
[LOG TRANSACTION NOT EXISTS] The given Log-Transaction
doesn't exist to the specified Log-ApplicationORA-20008
-
[LOG TRANSACTION NOT OPEN] The specified Log-Transaction
is no longer in State OPEN
for the
specified Log-Applicationpublic add_transaction_key(pi_application pst_application_name,
pi_transaction_id pst_log_transaction,
pi_key VARCHAR2,
pi_value YMINTERVAL_UNCONSTRAINED)
USER_LEHS_TRANSACTIONS
.
Within the View USER_LEHS_TRANSACTIONS
the Value will be
formatted automatically with the builtin Function TO_CHAR
,
but unfortunately there is no separate Session-Parameter where you
can configure the Format of the Character Conversion of this Parameter.
pi_application
-
Log-Application the Keyword should be addedpi_transaction_id
-
Transaction-ID the Keyword should be addedpi_key
-
Name of the Keypi_value
-
Value of the KeyORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20008
-
[LOG TRANSACTION NOT EXISTS] The given Log-Transaction
doesn't exist to the specified Log-ApplicationORA-20008
-
[LOG TRANSACTION NOT OPEN] The specified Log-Transaction
is no longer in State OPEN
for the
specified Log-Applicationpublic add_transaction_key(pi_application pst_application_name,
pi_transaction_id pst_log_transaction,
pi_key VARCHAR2,
pi_value TIMESTAMP_UNCONSTRAINED)
USER_LEHS_TRANSACTIONS
.
Within the View USER_LEHS_TRANSACTIONS
the Date-Value will be
formatted automatically with the builtin Function TO_CHAR
,
which takes advantage of the actual Session-Parameter
NLS_TIMESTAMP_FORMAT
.
pi_application
-
Log-Application the Keyword should be addedpi_transaction_id
-
Transaction-ID the Keyword should be addedpi_key
-
Name of the Keypi_value
-
Value of the KeyORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20008
-
[LOG TRANSACTION NOT EXISTS] The given Log-Transaction
doesn't exist to the specified Log-ApplicationORA-20008
-
[LOG TRANSACTION NOT OPEN] The specified Log-Transaction
is no longer in State OPEN
for the
specified Log-Applicationpublic add_topic(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_topic_parent VARCHAR2,
pi_topic_predecessor VARCHAR2)
pi_topic_parent
after
the Topic pi_topic_predecessor
pi_application
-
Log-Application the Log-Topic should be created topi_topic
-
Name of the new Topicpi_topic_parent
-
Name of the parent Topic the new Topic
should be arranged belowpi_topic_predecessor
-
Name of the predecessor Topic the new
Topic should be arranged afterpublic add_topic(pi_application pst_application_name,
pi_topic VARCHAR2,
pi_topic_parent VARCHAR2,
pi_position BINARY_INTEGER DEFAULT NULL)
pi_position
under the hierarchical Level as pi_topic_parent
pi_application
-
Log-Application the Log-Topic should be created topi_topic
-
Name of the new Topicpi_topic_parent
-
Name of the parent Topic the new Topic
should be arranged belowpi_position
-
Position of the new Topic within the horizontal
Order (0,1 = first Position, NULL = last Position)public add_message(pi_application pst_application_name,
pi_error_name pst_error_name,
pi_error_code BINARY_INTEGER,
pi_message CLOB,
pi_show_error_stack BOOLEAN DEFAULT TRUE,
pi_nls_language VARCHAR2 DEFAULT pc_default_language)
pi_application
-
Application the Exception Message should be added/changedpi_error_name
-
Error Name of the Exception Message (named Exception)
The Error Name will always be uppercased automatically.pi_error_code
-
Error Code the Exception Message will be assigned to.
(Should between ORA-20999
and ORA-20000
)pi_message
-
parametrized Exception Message (Placeholder for Parameters
are %1 to %9).pi_show_error_stack
-
When the named Exception will be raised should
any existing Error-Stack also be raised with
this named Exception (look at BuiltIn-Function
RAISE_APPLICATION_ERROR
, 3rd Parameterpi_nls_language
-
NLS-Language of the Exception Message.
Default or NULL: AMERICAN
public PKG_LEHS.pst_error_name get_last_exception_name(pi_application PKG_LEHS.pst_application_name)
public resync()
public resync_on_modification()
PKG_LEHS_SYSTEM
.
If no change has been made then the buffer will not be refreshed
public VARCHAR2 get_version()
| LEHS - Log- and Exception Handling System for ORACLE | |||||
FRAMES NO FRAMES | ||||||
SUMMARY: FIELD | TYPE | METHOD | DETAIL: FIELD | TYPE | METHOD |