Bugzilla – Bug 4325
Exceptions of type 'expectedType' could be more useful
Last modified: 2006-04-06 16:57:58
You need to log in before you can comment on or make changes to this bug.
The set of exceptions that use the i18n message class 'expectedType' report the desired type, but not the received type. This additional information can be of great use in diagnosing the cause of a problem. Thus instead of: Caused by: javax.naming.NamingException: Expected object of type 'org.globus.wsrf.utils.cache.Cache'. it should say: Caused by: javax.naming.NamingException: Expected object of type 'org.globus.wsrf.utils.cache.Cache', but got 'org.apache.naming.SynchronizedContext'
Created an attachment (id=922) [details] Adds the actual type recieved to the exception message. We've had this patch in use for a while now, found the extra information very helpful.
Committed the changes to trunk so far.
Committed the changes to globus_4_0_branch.