org.granite.tide.spring
Class SpringValidationExceptionConverter

java.lang.Object
  extended by org.granite.tide.spring.SpringValidationExceptionConverter
All Implemented Interfaces:
ExceptionConverter

public class SpringValidationExceptionConverter
extends Object
implements ExceptionConverter


Field Summary
static String VALIDATION_FAILED
           
 
Constructor Summary
SpringValidationExceptionConverter()
           
 
Method Summary
 boolean accepts(Throwable t, Throwable finalException)
           
 ServiceException convert(Throwable t, String detail, Map<String,Object> extendedData)
           
static InvalidValue[] convertErrors(Errors errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATION_FAILED

public static final String VALIDATION_FAILED
See Also:
Constant Field Values
Constructor Detail

SpringValidationExceptionConverter

public SpringValidationExceptionConverter()
Method Detail

accepts

public boolean accepts(Throwable t,
                       Throwable finalException)
Specified by:
accepts in interface ExceptionConverter

convert

public ServiceException convert(Throwable t,
                                String detail,
                                Map<String,Object> extendedData)
Specified by:
convert in interface ExceptionConverter

convertErrors

public static InvalidValue[] convertErrors(Errors errors)