org.apache.camel.guice.support
Interface CloseErrors
- All Known Implementing Classes:
- CloseErrorsImpl
public interface CloseErrors
A handler of exceptions when closing down resources. Implementations will
typically create a collection of error messages so that all of the different
close exceptions are collected together.
- Version:
closeError
void closeError(Object key,
Object object,
Exception cause)
- Notification of a close exception
- Parameters:
key
- the key of the object being closed which is usually a
Key
or String
object
- the object being closedcause
- the exception thrown when the close was attempted
throwIfNecessary
void throwIfNecessary()
throws CloseFailedException
- Throws:
CloseFailedException
Apache Camel