Class AmbiguousServiceRuntimeException

  • All Implemented Interfaces:
    Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, ServiceMatcherAccessor

    public class AmbiguousServiceRuntimeException
    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

      • AmbiguousServiceRuntimeException

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

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

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

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

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

        public AmbiguousServiceRuntimeException​(ServiceMatcher<?> aServiceMatcher,
                                                Throwable cause)
        Instantiates a new ambiguous service runtime exception.
        Parameters:
        aServiceMatcher - the service matcher
        cause - the cause