[jboss-user] [JBoss Seam] - Handling remoting exceptions

andrew.rw.robinson do-not-reply at jboss.com
Wed Nov 22 15:30:56 EST 2006


I am curious on the recommended way to handle errors in the Seam remoting calls. 

Since Java doesn't have multiple return value support it is hard to return one type of data (like an int) and also return error information to show to the user. 

I could develop some kind of special return value that is easy to parse in JavaScript, but that doesn't seem like a good API at all. 

I tried throwing a Java exception to see if the Seam code could handle it, but I got a null JavaScript exception in the process response code.

What are other people doing? Is there better support for this in 1.1 over 1.0? 

Thanks,
Andrew

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

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



More information about the jboss-user mailing list