Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Design question...

  Asked By: Kuhaylah    Date: Mar 07    Category: Java    Views: 465
  

Just lookin' for some quick design ideas from the experts. I am working on a
project where I have an applet that communicates with a server by serializing
objects to a servlet. The servlet does the work, and then writes the results
back to the applet. Pretty straightforward...

What I am curious about is how best to handle business logic errors. I am
considering just creating an exception and serializing that to the applet.
My communication layer class could then just throw the exception in the
client. I have done some testing, and it seems to work just fine - ie.
it's legal, but is it moral? Is this a reasonable solution, or is there a
better way of handling things?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Design question... Or get search suggestion and latest updates.




Tagged: