org.jboss.seam.exception.control.example.jaxrs.handler
Class RestExceptionHandlers

java.lang.Object
  extended by org.jboss.seam.exception.control.example.jaxrs.handler.RestExceptionHandlers

@HandlesExceptions
public class RestExceptionHandlers
extends Object


Constructor Summary
RestExceptionHandlers()
           
 
Method Summary
 void configurableExceptionHandler(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.
 void logException(CaughtException<Throwable> event)
          An example that demonstrates logging all exceptions to stdout that are caught during a REST resource request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestExceptionHandlers

public RestExceptionHandlers()
Method Detail

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.