File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How use web.xml to set error page to grab all exceptions?

 
Robert Paris
Ranch Hand
Posts: 585
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to make sure that all exceptions go to this one page. Is the following the correct way?
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the correct way to catch CHECKED exceptions that are not handled within your code.
 
Robert Paris
Ranch Hand
Posts: 585
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, 2 questions:
1. I am getting an error from my error page now (java.lang.IllegalStateException), any idea what I'm doing wrong?

2. Can you give me an example of an unchecked exception? How would I set the error page to handle those as well? Set it to handle RuntimeException?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic