Class NoMatchingServiceRuntimeException

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

public class NoMatchingServiceRuntimeException extends ServiceBusRuntimeException
This exception is thrown whenever a service cannot be unambiguously distinguished from another service because a matcher was not strict enough to identify just one service.
See Also:
  • Constructor Details

    • NoMatchingServiceRuntimeException

      public NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, String aMessage, String aErrorCode)
      Instantiates a new no matching service runtime exception.
      Parameters:
      aServiceMatcher - the service matcher
      aMessage - the message
      aErrorCode - the error code
    • NoMatchingServiceRuntimeException

      public NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new no matching service runtime exception.
      Parameters:
      aServiceMatcher - the service matcher
      aMessage - the message
      aCause - the cause
      aErrorCode - the error code
    • NoMatchingServiceRuntimeException

      public NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, String message, Throwable cause)
      Instantiates a new no matching service runtime exception.
      Parameters:
      aServiceMatcher - the service matcher
      message - the message
      cause - the cause
    • NoMatchingServiceRuntimeException

      public NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, String message)
      Instantiates a new no matching service runtime exception.
      Parameters:
      aServiceMatcher - the service matcher
      message - the message
    • NoMatchingServiceRuntimeException

      public NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, Throwable aCause, String aErrorCode)
      Instantiates a new no matching service runtime exception.
      Parameters:
      aServiceMatcher - the service matcher
      aCause - the cause
      aErrorCode - the error code
    • NoMatchingServiceRuntimeException

      public NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, Throwable cause)
      Instantiates a new no matching service runtime exception.
      Parameters:
      aServiceMatcher - the service matcher
      cause - the cause
  • Method Details