3 Replies Latest reply on Nov 28, 2006 4:12 PM by Gavin King

    Handling remoting exceptions

    Andrew Apprentice

      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