-1

Using jdk1.6, there SQLexception(String s) is defined. But in my workspace it showing that SQLexception(String s) is undefined, please help.

SQLexception(String s) is undefined

anacron
  • 6,443
  • 2
  • 26
  • 31
nitincse
  • 1
  • 2

1 Answers1

-1

this is because sqlexception is a checked exception , need to be wrapped with a try catch. if u are going to throw it again in the try catch it is better to throw it in the method. or throw a runtimeexception

Juan Pablo
  • 304
  • 3
  • 8