openamf/src/java/org/openamf/invoker JavaServiceInvoker.java,1.15,1.16
| Newsgroups | gmane.comp.java.openamf.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openamf/openamf/src/java/org/openamf/invoker
In directory sc8-pr-cvs1:/tmp/cvs-serv21095/src/java/org/openamf/invoker
Modified Files:
JavaServiceInvoker.java
Log Message:
changed invokeService() to catch InvocationTargetExceptions
and use the cause instead of the InvocationTargetExceptions when creating the ServiceInvocationException
This will make debugging easier and will enhance error handling
Index: JavaServiceInvoker.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/invoker/JavaServiceInvoker.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** JavaServiceInvoker.java 25 May 2003 00:32:54 -0000 1.15
--- JavaServiceInvoker.java 28 May 2003 01:01:31 -0000 1.16
***************
*** 45,48 ****
--- 45,52 ----
request.getParameters());
persistantServiceObject = service;
+ } catch (InvocationTargetException e) {
+ //use the cause since the exception is thrown when
+ //the service method throws an exception
+ throw new ServiceInvocationException(request, e.getCause());
} catch (Exception e) {
throw new ServiceInvocationException(request, e);
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge