Kedarnath Bhagwat wrote:I think RecordNotFoundException and DuplicateKeyException are user defined exceptions .
When I copied the Interface into NetBeans IDE , I got the error for these as unknown symbols.
Now my question is what should be approach for defining these ?
How should I code those ?
By starting to read the assignment specs and how you MUST package and design these exceptions. These exceptions are checked as they are specified in the interface methods. You probably need to read up on coding to an interface and use that information as your starting off point.
My assignment was started like this...
Reading the schema information from the database and then started on the exceptions as this was the easiest. I then focused on implementing my database accessing through using a facade design(google) and then the locking. Once you have your data tier as well as the CRUD implemented you can move on to the business layer and then the controller and then the view. If you have difficulty understanding just explain with what and I am sure we can all help
SCJP 6.0, SCJD (400/400), SCBCD for JEE 5, SCWCD 1.4 I do videos for development at
I am probably the only developer ever to have had an orange sized brain tumor in my brain while learning development!!
posted 10 years ago
Thanks , I will write these Exceptions and will extend Exception class since these are checked exceptions .