Search Results get_exception_text
Overview
PA_EXCEPTION_REASONS_PUB is a public PL/SQL package in the Oracle Projects (PA) application of Oracle E-Business Suite. Its business purpose is to provide a lookup and translation service for exception reason codes recorded against project transactions, expenditure items, and related Projects entities. When Oracle Projects flags a transaction — for example, an expenditure item that fails validation, an interface row that cannot be processed, or a cost distribution that cannot be generated — the system stores an exception type, an exception code, and an exception reason on the affected record. These values are stored as short coded identifiers rather than as displayable messages. PA_EXCEPTION_REASONS_PUB resolves those coded identifiers into human-readable text suitable for display and reporting.
The package is declared with AUTHID CURRENT_USER, meaning it executes with the privileges of the invoking user rather than the definer. This makes it suitable for invocation from a wide range of calling contexts, provided the invoker has the necessary grants on the underlying table and synonyms. The package header dates to the early Oracle Projects releases (the header comment references a 1999 revision), and the interface has remained stable across the 12.1.1 and 12.2.2 releases, which is consistent with its role as a low-level utility rather than a business-process API.
Key Procedures and Functions
The documented interface exposes a single function, GET_EXCEPTION_TEXT. It accepts an exception type, an exception code, an exception reason, and a return type indicator, and returns a VARCHAR2 value containing the resolved exception text. The four input parameters allow the caller to identify the exact exception condition (type plus code) and, where applicable, to further qualify it by a specific reason or to request a particular representation of the resulting message through the return type argument. The function is the sole entry point into the package; no procedures are documented.
The function declaration carries the PRAGMA RESTRICT_REFERENCES assertion with purity levels WNDS (Write No Database State) and WNPS (Write No Package State). This guarantees that the function performs no database or package-state writes, which permits the function to be called safely from SQL statements, views, and other read-only contexts in addition to PL/SQL blocks. This purity guarantee is a significant characteristic of the package: it confirms the function is a pure lookup and formatting routine rather than a state-changing operation.
Tables Accessed
The package reads from the PA_EXCEPTION_REASONS table, accessed through the APPS synonym layer. This table stores the mapping between exception type, exception code, exception reason values, and their corresponding descriptive text. It functions as the message repository from which GET_EXCEPTION_TEXT retrieves the appropriate display string for a given combination of inputs. No write operations are performed against this table or any other table; consistent with the WNDS purity assertion, all access is read-only.
Usage Notes
Because the function is declared WNDS and WNPS, it is commonly invoked directly from SQL queries, Oracle Forms triggers, concurrent program logic, and custom PL/SQL wrappers where exception text must be displayed or written to output. Typical scenarios include rendering exception messages on project transaction inquiry forms, producing concurrent program reports that list failed interface rows with their associated explanations, and enriching custom extracts of expenditure or cost data with readable exception descriptions.
PA_EXCEPTION_REASONS_PUB is referenced by eighteen other packages across Oracle Projects, indicating that it is a foundational utility used broadly within the schema rather than by a narrow set of consumers. This wide internal dependency has two practical implications. First, the package is a stable interface that should not be modified casually. Second, because the package name is public and documented, it is a reasonable integration point for custom code that needs the same exception-text resolution behavior as standard Oracle Projects functionality. Developers should note that the underlying message content is data-driven by PA_EXCEPTION_REASONS, so maintenance of exception text is performed through data setup rather than code changes.
-
PACKAGE: APPS.PA_EXCEPTION_REASONS_PUB
12.2.2
-
PACKAGE: APPS.PA_EXCEPTION_REASONS_PUB
12.1.1
-
PACKAGE BODY: APPS.PA_EXCEPTION_REASONS_PUB
12.2.2
-
PACKAGE BODY: APPS.PA_EXCEPTION_REASONS_PUB
12.1.1
-
APPS.PA_EXCEPTION_REASONS_PUB dependencies on PA_EXCEPTION_REASONS_PUB
12.2.2
-
APPS.PA_EXCEPTION_REASONS_PUB dependencies on PA_EXCEPTION_REASONS_PUB
12.1.1
-
APPS.PA_EXCEPTION_REASONS_PUB dependencies on PA_EXCEPTION_REASONS
12.1.1
-
APPS.PA_EXCEPTION_REASONS_PUB dependencies on PA_EXCEPTION_REASONS
12.2.2