org.jboss.seam.exception.control.example.jaxrs.handler
Class RestExceptionHandlers
java.lang.Object
org.jboss.seam.exception.control.example.jaxrs.handler.RestExceptionHandlers
@HandlesExceptions
public class RestExceptionHandlers
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestExceptionHandlers
public RestExceptionHandlers()
logException
public void logException(@Handles(during=DESCENDING)
CaughtException<Throwable> event)
- An example that demonstrates logging all exceptions to stdout that are caught during a REST resource request
configurableExceptionHandler
public void configurableExceptionHandler(@Handles(precedence=-100)
CaughtException<Throwable> event,
Response.ResponseBuilder responseBuilder,
List<ExceptionResponse> exceptionResponses)
- An example that demonstrates using XML-based exception mapping configuration to handle an
exception that occurs during a REST resource request by sending an HTTP error response.
Copyright © 2010 Seam Framework. All Rights Reserved.