My Oracle Support Banner

How To Override "Error invoking class_name.Function_name" When Catching Exception In Java Code And Show Some Meaningful Exception Message To The User In ADF Mobile Application ? (Doc ID 1534749.1)

Last updated on MARCH 15, 2021

Applies to:

Oracle JDeveloper - Version 11.1.2.3.0 to 11.1.2.3.0 [Release Oracle11g]
Information in this document applies to any platform.

Goal

In ADF Mobile application, try-catch block is defined to handle exceptions as shown below :

 
When the application raises an exception, it displays "Error invoking method '<METHOD_NAME>' in '<PACKAGE>.<CLASS_NAME>' " from the associated java code class and method, but not the new thrown exception message as above ("Error with the server. Please try later.").


How to override this error invoking method '<METHOD_NAME>' in '<PACKAGE>.<CLASS_NAME>' " and show some meaningful exception message to the user ?
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.