Class DuplicateServiceRuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.servicebus.ServiceBusRuntimeException
org.refcodes.servicebus.DuplicateServiceRuntimeException
All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, ServiceAccessor

public class DuplicateServiceRuntimeException extends ServiceBusRuntimeException
This exception is thrown whenever a service, which cannot be distinguished from another service, is added to the service bus. In such a case, no matcher would be able to match exactly one of them services, we would end up with a non deterministic system.
See Also:
  • Constructor Details

    • DuplicateServiceRuntimeException

      public DuplicateServiceRuntimeException(Service<?> aService, String aMessage, String aErrorCode)
      Instantiates a new duplicate service runtime exception.
      Parameters:
      aService - the service
      aMessage - the message
      aErrorCode - the error code
    • DuplicateServiceRuntimeException

      public DuplicateServiceRuntimeException(Service<?> aService, String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new duplicate service runtime exception.
      Parameters:
      aService - the service
      aMessage - the message
      aCause - the cause
      aErrorCode - the error code
    • DuplicateServiceRuntimeException

      public DuplicateServiceRuntimeException(Service<?> aService, String message, Throwable cause)
      Instantiates a new duplicate service runtime exception.
      Parameters:
      aService - the service
      message - the message
      cause - the cause
    • DuplicateServiceRuntimeException

      public DuplicateServiceRuntimeException(Service<?> aService, String message)
      Instantiates a new duplicate service runtime exception.
      Parameters:
      aService - the service
      message - the message
    • DuplicateServiceRuntimeException

      public DuplicateServiceRuntimeException(Service<?> aService, Throwable aCause, String aErrorCode)
      Instantiates a new duplicate service runtime exception.
      Parameters:
      aService - the service
      aCause - the cause
      aErrorCode - the error code
    • DuplicateServiceRuntimeException

      public DuplicateServiceRuntimeException(Service<?> aService, Throwable cause)
      Instantiates a new duplicate service runtime exception.
      Parameters:
      aService - the service
      cause - the cause
  • Method Details