T
- type of Throwable
public interface ValidationTransformer<T extends Throwable>
extends org.apache.commons.collections.Transformer
Transformer
does not allow throwing of Throwable
.
For validation exception is the default manner. So provide a wrapper impl
that supports throwing expected validation exception of type T
Transformer.transform(Object)
is expected to throw either
RuntimeException
that wraps the actual exception in Throwable.getCause()
Throwable.getCause()
, main exception is itself of type TvalidateTransformer.validate(request);
Modifier and Type | Method and Description |
---|---|
default Object |
validate(Object input) |
Copyright © 2018. All rights reserved.