• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using java.lang.SecurityException

 
Jonathan Moore
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I've just submitted my project and am preparing for the exam which I'm taking tomorrow. While going through my code I realised I may have made a mistake with my SecurityException - I didn't implement my own in the suncertify.db package, but used the java.lang.SecurityException. For all the checking and double checking I did of my code, this slipped through the net - I didn't mention it in my choices document either.

My instructions say "Any unimplemented exceptions in this interface must be created as member classes of the suncertify.db package". I feel I can probably get away with this since SecurityException is implemented already, though given the choice I would go back and reimplement it since I think my use is wrong.

Does anyone know if this is likely to affect my mark in a major way? I'm particularly worried since the sentence includes the word "must". I'm just hoping I may have a chance to justify my "decision" in the exam tomorrow.

Thanks for any advice
Jon
 
Surya De
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good question John. I would like that to be clarified as well since I have gone your route so far and I have used the java.alang package exception and not provided my own.

Surya
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11914
209
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jon,

I don't think you will have a problem with that. It would have been nice if you had explained why you chose the J2SE exception, but it is not essential.

Regards, Andrew
 
Jonathan Moore
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply - it's set my mind at rest!

Cheers
Jon
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic