Search Results raise_exception




Overview

APP_EXCEPTION is a foundational Oracle E-Business Suite (EBS) PL/SQL package body owned by the APPS schema. It provides a standardized mechanism for applications to raise, propagate, and interrogate application-level exceptions across the EBS technology stack. Rather than relying solely on native PL/SQL error handling, EBS components use APP_EXCEPTION to attach meaningful messages, codes, and typed error classifications to exceptions so that callers can present consistent, user-friendly diagnostics. In the context of EBS 12.1.1 and 12.2.2, the package remains VALID and is classified as an OTHER API, indicating it is an internal utility rather than a published business API. Its broad adoption is reflected in the fact that it is referenced by 3,809 other packages, making it one of the most widely consumed internal utilities in the APPS schema.

Key Procedures and Functions

  • RAISE_EXCEPTION — Initiates an application exception, allowing a caller to signal an error condition together with supporting text and code information so it can be surfaced consistently through the EBS message stack.
  • GET_EXCEPTION — Retrieves the current or most recent exception information, enabling calling code to inspect the details of a raised exception after it has been trapped.
  • GET_TYPE — Returns the type classification associated with the exception, permitting callers to branch logic based on the category of error encountered.
  • GET_CODE — Returns the code value associated with the exception, typically used for programmatic identification and lookup of the underlying error.
  • GET_TEXT — Returns the human-readable text of the exception message, suitable for display in forms, reports, or log output.
  • INVALID_ARGUMENT — A convenience routine for raising an exception when an argument fails validation, standardizing the error path for invalid input.

Tables Accessed

The documented metadata for APP_EXCEPTION does not list any base tables accessed through APPS synonyms. This is consistent with the package's design as a lightweight, in-memory exception utility that operates on PL/SQL exception state rather than persisting data to database tables. Any message or exception detail handling is mediated through dependencies on other technology-stack components rather than direct table SQL.

Usage Notes

APP_EXCEPTION is invoked throughout EBS in forms, concurrent programs, and custom PL/SQL code wherever consistent error handling is required. Its dependency list confirms tight integration with the EBS technology stack: it references APP_EXCEPTION (its own specification), FND_LOG for logging exceptions to the application log, FND_MESSAGE for message retrieval and formatting, and the SYS-supplied DBMS_STANDARD and STANDARD packages for core PL/SQL error facilities. Because it is not referenced by any database object, it sits at the top of the dependency hierarchy, calling into FND services without being called by other database-resident objects. Developers should treat it as a shared internal utility: it is appropriate for standardizing exception propagation in custom EBS code, but it is not a published business API and its behavior should be exercised in non-production environments before adoption.