wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes SecurityException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "SecurityException" Watch "SecurityException" New topic
Author

SecurityException

David Abramowicz
Ranch Hand

Joined: Dec 10, 2004
Posts: 56
Hi All!

This may be a stupid question but....

It is stated in my assignment that:

"Any unimplemented exceptions in this interface must all be created as member classes of the suncertify.db package"

SecurityException is mentioned in the interface AND avail in the java.lang package, does that mean I don't have to implement it?

Thanks /Dave
peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
Originally posted by David Abramowicz:
Hi All!

This may be a stupid question but....

It is stated in my assignment that:

"Any unimplemented exceptions in this interface must all be created as member classes of the suncertify.db package"

SecurityException is mentioned in the interface AND avail in the java.lang package, does that mean I don't have to implement it?

Thanks /Dave


It's not a stupid question, it has been asked before, but I don't think there was a definitive answer. I'm using the unchecked java.lang.SecurityException since the events that can throw it are unrecoverable errors and its available. The description says its thrown by a SecurityManager, but that doesn't prevent your code from throwing it. Some people say that you should use a checked suncertify.db.SecurityException. Whichever choice you make be sure to discuss it in your choices document.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SecurityException