org.apache.camel.guice.support.internal
Class CloseErrorsImpl
java.lang.Object
org.apache.camel.guice.support.internal.CloseErrorsImpl
- All Implemented Interfaces:
- CloseErrors
public class CloseErrorsImpl
- extends Object
- implements CloseErrors
The default implementation of @{link CloseErrors}
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseErrorsImpl
public CloseErrorsImpl(Object source)
closeError
public void closeError(Object key,
Object object,
Exception cause)
- Description copied from interface:
CloseErrors
- Notification of a close exception
- Specified by:
closeError
in interface CloseErrors
- 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
public void throwIfNecessary()
throws CloseFailedException
- Specified by:
throwIfNecessary
in interface CloseErrors
- Throws:
CloseFailedException
Apache Camel