Class 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:
    Serialized Form
    • Constructor Detail

      • 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