Interface ThrowingCustomizer<T>
- Type Parameters:
T
- The type of input.
- All Superinterfaces:
Customizer<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
Customizer
that allows invocation of code that throws a checked exception.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
DefaultCustomizer.customize(Object)
that wraps any thrown checked exceptions (by default in aRuntimeException
).void
Performs the customization on the given object, possibly throwing a checked exception.
-
Method Details
-
customize
DefaultCustomizer.customize(Object)
that wraps any thrown checked exceptions (by default in aRuntimeException
).- Specified by:
customize
in interfaceCustomizer<T>
- Parameters:
t
- the object to customize
-
customizeWithException
Performs the customization on the given object, possibly throwing a checked exception.- Parameters:
t
- the object to customize- Throws:
Exception
- on error
-