Class ErrorServiceImpl
java.lang.Object
org.jvnet.hk2.testing.junit.internal.ErrorServiceImpl
- All Implemented Interfaces:
ErrorService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is called when a failure occurs in the system.
-
Constructor Details
-
ErrorServiceImpl
public ErrorServiceImpl()
-
-
Method Details
-
onFailure
Description copied from interface:ErrorService
This method is called when a failure occurs in the system. This method may use anyServiceLocator
api. For example, an implementation of this method might want to remove a descriptor from the registry if the error can be determined to be a permanent failure.- Specified by:
onFailure
in interfaceErrorService
- Parameters:
ei
- Information about the error that occurred- Throws:
MultiException
- if this method throws an exception that exception will be thrown back to the caller wrapped in another MultiException if the error is of typeErrorType.FAILURE_TO_REIFY
. If the error is of typeErrorType.DYNAMIC_CONFIGURATION_FAILURE
orErrorType.SERVICE_CREATION_FAILURE
orErrorType.SERVICE_DESTRUCTION_FAILURE
then any exception thrown from this method is ignored and the original exception is thrown back to the caller
-