This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes <error-page> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "<error-page>" Watch "<error-page>" New topic
Author

<error-page>

Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
Is



invalid?


$Hi/\bEr
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

If you talked about XML, then its well formed and valid, You can try whether this code works or not by throwing an object of Error. But as per JavaDocs are concerned, Error are not meant to handle by application, its a case of abnormal condition and thus not handled.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
If java.lang.Throwable is a valid value, then java.lang.Error should also be a valid value as its a sub class of Throwable.But i read somwhere that Error is not a valid entry. Please confirm.

Thanks
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Shiaber Shaam wrote:But i read somwhere that Error is not a valid entry. Please confirm.

I never tried this thing, but as I said, the XML is valid, If this code works by throwing the "Error" object, then its valid (but not recommended). So what exactly you mean, when you said a "valid entry" ?
 
 
subject: <error-page>
 
Similar Threads
IBM Http Server : Unable to redirect to custom error page
Server Error
Exception redirect to page
Error Page Problem
How to handle JSP exceptions declaratively