org.granite.tide.spring
Class SpringValidationExceptionConverter

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

public class SpringValidationExceptionConverter
extends Object
implements org.granite.messaging.service.ExceptionConverter


Field Summary
static String VALIDATION_FAILED
           
 
Constructor Summary
SpringValidationExceptionConverter()
           
 
Method Summary
 boolean accepts(Throwable t, Throwable finalException)
           
 org.granite.messaging.service.ServiceException convert(Throwable t, String detail, Map<String,Object> extendedData)
           
static org.granite.tide.validators.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 org.granite.messaging.service.ExceptionConverter

convert

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

convertErrors

public static org.granite.tide.validators.InvalidValue[] convertErrors(Errors errors)