java.lang.Object
org.glassfish.hk2.utilities.RethrowErrorService
- All Implemented Interfaces:
ErrorService
This is an implementation of
ErrorService that simply rethrows
the exception caught.
Do not use this service in secure applications where callers to lookup should not be given the information that they do NOT have access to a service.
- Author:
- jwells, David Matejcek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonFailure(ErrorInformation errorInformation) This method is called when a failure occurs in the system.
-
Constructor Details
-
RethrowErrorService
public RethrowErrorService()
-
-
Method Details
-
onFailure
Description copied from interface:ErrorServiceThis method is called when a failure occurs in the system. This method may use anyServiceLocatorapi. 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:
onFailurein interfaceErrorService- Parameters:
errorInformation- 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_FAILUREorErrorType.SERVICE_CREATION_FAILUREorErrorType.SERVICE_DESTRUCTION_FAILUREthen any exception thrown from this method is ignored and the original exception is thrown back to the caller
-