• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI call to Exception Class  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To the group,

When I check for a value being less than another value, I want to throw an exception if the end result is less than 0. Works great, in that I get the message back that I want, but between the two message I have the below

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
cscie160.project.ATMException:

Any thoughts on where to look for why this is happening..

thank you...
 
Ranch Hand
Posts: 66
Android Eclipse IDE IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are manually throwing a new exception? Which one?
 
spm Martino
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am manually throwing the ATMException...
 
Keith Rainey
Ranch Hand
Posts: 66
Android Eclipse IDE IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ATMException is a user defined exception? Are you directly subclassing the Exception class, or some other?
 
spm Martino
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes ATMException is a user defined exception...I don't understand the subClass reference, I am new to Java...
 
Keith Rainey
Ranch Hand
Posts: 66
Android Eclipse IDE IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you created ATMException, it had to be based on another class, right?


or something similar...

Maybe if you share the code where you define the ATMException, it would help clarify the situation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!