public class CloseErrorsImpl extends Object implements CloseErrors
Constructor and Description |
---|
CloseErrorsImpl(Object source) |
Modifier and Type | Method and Description |
---|---|
void |
closeError(Object key,
Object object,
Exception cause)
Notification of a close exception
|
void |
throwIfNecessary() |
public CloseErrorsImpl(Object source)
public void closeError(Object key, Object object, Exception cause)
CloseErrors
closeError
in interface CloseErrors
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 attemptedpublic void throwIfNecessary() throws CloseFailedException
throwIfNecessary
in interface CloseErrors
CloseFailedException
Apache Camel