• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using java.lang.SecurityException

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply - it's set my mind at rest!

Cheers
Jon
 
reply
    Bookmark Topic Watch Topic
  • New Topic