Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

22.6. Annotations for exceptions

These annotations let you specify how Seam should handle an exception that propagates out of a Seam component.
@Redirect
@Redirect(viewId="error.jsp")
Specifies that the annotated exception causes a browser redirect to a specified view id.
  • viewId — specifies the JSF view id to redirect to.
  • message — a message to be displayed, default to the exception message.
  • end — specifies that the long-running conversation should end, default to false.
@HttpError
@HttpError(errorCode=404)
Specifies that the annotated exception causes a HTTP error to be sent.
  • errorCode — the HTTP error code, default to 500.
  • message — a message to be sent with the HTTP error, default to the exception message.
  • end — specifies that the long-running conversation should end, default to false.

 
 
  Published under the terms of the Open Publication License Design by Interspire