This content has been marked as final. Show 7 replies
Which version of JDeveloper are you using?
Rajdeep wrote:Not sure I understand what kind of customization you are looking for, but maybe the information in forum thread "HTML tags returned from DCErrorMessage.getHTMLText() shown on the page ", can help,
... Please let me know how to customize the error display for a custom exception ? ...
at HTML tags returned from DCErrorMessage.getHTMLText() shown on the page
It has details on how to get something as shown in the screenshot
Given the documentation you refer to, maybe also these are relevant:
- forum thread "multiple callbacks to DCErrorHandlerImpl",
at multiple callbacks to DCErrorHandlerImpl
- JIRA issue ADFEMG-76, "bug 11674731 : DCERRORHANDLERIMPL SUB-CLASS SUPER(TRUE) OR SUPER(FALSE)"
I am using Jdeveloper 22.214.171.124.0.
In my application, we are doing all updates and add operations through sql procedures which returns error or warning status with message and rulename that failed. I am throwing custom ValidatorJboException from my model for error and warning status on sql procedures call. Now I want to customize the framework in such a way that :
in case of error : user can see errors in table ( Message, Rule Name ) with Ok button. And transaction should rollback on OK press.
in case of warning : user can see errors in table ( Message, Rule Name ) with AcceptAndContinue and Cancel button. Transaction should commit in case of AcceptAndContinue and rollback in case of cancel.
I am having an additional property in my custom Exception to determine whether exception is because of error or warning.
Question : So as of now, I am looking for a way to customize the error display for custom exception. By default framework adds the facesMessage and displays that.