Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception-type in DD

 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per my understanding exception-type accepts Throwable object , so Error is subclass of Throwable , hence Error is a Throwable object.
So are these A,B,C option are correct declaration in DD.

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes. you are Correct
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks seetharaman
 
ramesh sakibanda
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no you are not supposed to handle error types
 
Vishwanath Krishnamurthi
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ramesh
no you are not supposed to handle error types
Handling the error is trying to recover from the error and trying to proceed with executing the code... Nothing like that is happening here. Here we configure what page should be shown in case the error occurs... so the user sees only a graceful simple message and not some frightenning technical message.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic