Ok. It is funky idea to have a seperatate callback on error. I think MochiKit 
allowed you to do this. I don't understand completely what you want to do but 
what is important to me is that I could still provide a message with my 
exception and have that displayed to the user. eg..

public BigDecimal getBalance(String accountNumber) throws MyRemoteException
   {
    // not a valid account
     throw new MyRemoteException("You have entered an invalid account number.");
    // account closed
    throw new MyRemoteException("This account is closed.");
    }

It may be cleaner to pass error codes back in the exception and then match that 
to a localized message but I don't want to be forced to do that.

Thanks
Andrew 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950970#3950970

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950970


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to