Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt with error page config in DD

 
raghu dubey
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I may be trying to relate things to Core java here, but still I have a doubt.

If I have configured 2 error pages using the <exception-type> element, the first one is a Exception, and the second one is an ArithmeticException error page.

Does their order matters like it does in handling exceptions in java classes?

I mean do i need to have more specific error pages(say for ArithmeticException) in the DD than the general ones like for Exception object.
 
Phani Burra
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first error page element that matches the exception is called. Yes order is important.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The order of exception in error-page is not important. The closest match will be selected.

Thanks
 
raghu dubey
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am confused a little.

But I was reading the Miklai Zalkin's notes and it says the closest match wins, so order should not be needed.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic