@Singleton public class ErrorServiceImpl extends Object implements ErrorService
Constructor and Description |
---|
ErrorServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(ErrorInformation ei)
This method is called when a failure occurs in the system.
|
public void onFailure(ErrorInformation ei) throws MultiException
ErrorService
ServiceLocator
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.onFailure
in interface ErrorService
ei
- Information about the error that occurredMultiException
- 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.DYNAMIC_CONFIGURATION_FAILURE
or ErrorType.SERVICE_CREATION_FAILURE
or ErrorType.SERVICE_DESTRUCTION_FAILURE
then any exception thrown from this
method is ignored and the original exception is thrown back to the callerCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.