org.jboss.seam.rest.exceptions.integration
Class CatchValidationExceptionHandler

java.lang.Object
  extended by org.jboss.seam.rest.exceptions.integration.CatchValidationExceptionHandler

@HandlesExceptions
@ApplicationScoped
public class CatchValidationExceptionHandler
extends Object

The default handler that obtains ValidationException from Seam Catch and converts it to an HTTP response.

Author:
Jozef Hartinger

Constructor Summary
CatchValidationExceptionHandler()
           
 
Method Summary
 void handleValidationException(CaughtException<ValidationException> event, javax.ws.rs.core.Response.ResponseBuilder builder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatchValidationExceptionHandler

public CatchValidationExceptionHandler()
Method Detail

handleValidationException

public void handleValidationException(@Handles(precedence=-100,during=DEPTH_FIRST)
                                      CaughtException<ValidationException> event,
                                      @RestResource
                                      javax.ws.rs.core.Response.ResponseBuilder builder)


Copyright © 2011 Seam Framework. All Rights Reserved.