• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

RecordNotFoundException and DuplicateKeyException

 
Greenhorn
Posts: 21
  • 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 ?

 
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: 21
  • 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 .
 
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.
 
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic