org.guiceyfruit.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:
- $Revision: 1.1 $
Method Summary |
void |
closeError(java.lang.Object key,
java.lang.Object object,
java.lang.Exception cause)
Notification of a close exception |
void |
throwIfNecessary()
|
closeError
void closeError(java.lang.Object key,
java.lang.Object object,
java.lang.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
Copyright © 2009. All Rights Reserved.