Enhancement of the **APEX_ERROR** Package to Support Additional Message Types: **CONFIRM**, **WARNING**, and **INFORMATION**
Currently, Oracle APEX provides standardized error handling through the APEX_ERROR package, which is powerful for managing unhandled exceptions and mapping error messages in a centralized way. However, this package is limited to the handling and display of error messages only (e.g., via apex_error.add_error). It lacks built-in, standardized support for other types of user communication messages, such as:
- Confirmation messages
- Warning messages
- Informational messages
The idea is to extend the APEX_ERROR package to include native support for different types of messages, providing a more robust and unified interface for message management in applications.
Use Case
This enhancement would be useful in several scenarios where different types of user messages need to be handled during process execution, such as:
- Confirmations to proceed or not
Prompting users to confirm whether to proceed with an action (e.g., deletions or overwrites).
- Warning users about potential issues
Showing warnings during execution, such as calculation mismatches or unexpected values.
- Displaying informational messages
Notifying users about successful operations, system statuses, or the next steps in a process.
- Centralized messaging framework
Unifying all types of user feedback (errors, warnings, info, confirmations) into a centralized and programmatic API, improving maintainability and readability.