• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RecordNotFoundException and DuplicateKeyException

 
Kedarnath Bhagwat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

 
Yucca Nel
Ranch Hand
Posts: 147
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kedarnath Bhagwat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks , I will write these Exceptions and will extend Exception class since these are checked exceptions .
 
Jari Timonen
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the instructionscarefully since it might describe what kind of constructors you must provide to these classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic