@Contract public interface ErrorService
An implementation of ErrorService must be in the Singleton scope.
Implementations of ErrorService will be instantiated as soon as
they are added to HK2 in order to avoid deadlocks and circular references.
Therefore it is recommended that implementations of ErrorService
make liberal use of
when injecting dependent services so that these services are not instantiated
when the ErrorService is created
|Modifier and Type||Method and Description|
This method is called when a failure occurs in the system.
void onFailure(ErrorInformation errorInformation) throws MultiException
ServiceLocatorapi. 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.
errorInformation- Information about the error that occurred
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 type
ErrorType.FAILURE_TO_REIFY. If the error is of type
ErrorType.SERVICE_DESTRUCTION_FAILUREthen any exception thrown from this method is ignored and the original exception is thrown back to the caller
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.