• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<error-page>

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is



invalid?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic