• Post Reply Bookmark Topic Watch Topic
  • New Topic

Catching RemoteExceptions

 
Sam O'Neill
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there
When catching RemoteExceptions I am not sure whether I should be catching RemoteException's subclasses (of which there are many!) and then passing back a nice message composed by myself to the user based on the Exception caught or just catching RemoteException and then passing back a nice message plus the message from the caught exception?
I don't like the idea of displaying the message in the nested RemoteException but I don't much like the idea of catching all the individual exceptions either.
Does anyone have any thoughts on this?
Many thanks Sam
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please continue this discussion here
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!