Try printing out
errorMessage.getException().getCause().getClass().getName() to determine
what it is. (Only initially so you know how to change the code.)
--- "Cohan, Sean" <[EMAIL PROTECTED]> wrote:
> How can I get the nested Exception out of a RemoteException in order to
> see
> if it is an instanceof a particular Exception class? I've tried
> getCause()
> without much luck. I've tried:
>
> if (errorMessage.getException().getCause() instanceof
> InvalidCredentialsException) {
>
> Thanks.
>
> To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
=====
James Amos Nathaniel Stauffer
Stauffer_James
@yahoo.com
Spam food: [EMAIL PROTECTED]
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm