My DB interface I received by the assignment is as follows:
and then I have methods that throw RecordNotFoundException and SecurityException. And then following statement in the instructions :
Any unimplemented exceptions in this interface must all be created as member classes of the suncertify.db package. Each must have a zero argument constructor and a second constructor that takes a String that serves as the exception's description.
I created my own SecurityException and justified this by saying that even though java.lang.SecurityException exists, it is thrown when internal Java security policies are violated, and my custom exception is a domain exception specific to the project.