Class RethrowErrorService

  • All Implemented Interfaces:
    ErrorService

    @Singleton
    public class RethrowErrorService
    extends java.lang.Object
    implements ErrorService
    This is an implementation of ErrorService that simply rethrows the exception caught.

    By default HK2 ignores errors caught during a lookup operation. This service will make these errors get thrown up to the caller of the lookup operation.

    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.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onFailure​(ErrorInformation errorInformation)
      This method is called when a failure occurs in the system.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait