• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can RNFE & business exceptions have more than 2 constructors?

 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I got a question regarding the constructors for RNFE and SecurtiyException and other business specific exceptions. Here is the quote from the instructions:

Each unimplemented exception must have a zero argument constructor and a second constructor that takes a String that serves as the exception's description.

Can we have another constructor that take String & int or something like that. Some of the code depends on the int mode. So am wondering if we are allowed to use one or not?
Thanks Guys!
 
Ken Krebs
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satish,
You certainly can. Those are just minimum requirements.
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ken. That's a relief
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!