Class NoMatchingServiceRuntimeException

  • All Implemented Interfaces:
    java.io.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ServiceMatcher<?> getServiceMatcher()
      Gets the service matcher.
      • Methods inherited from class org.refcodes.exception.AbstractRuntimeException

        getErrorCode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • NoMatchingServiceRuntimeException

        public NoMatchingServiceRuntimeException​(ServiceMatcher<?> aServiceMatcher,
                                                 java.lang.String aMessage,
                                                 java.lang.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,
                                                 java.lang.String aMessage,
                                                 java.lang.Throwable aCause,
                                                 java.lang.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,
                                                 java.lang.String message,
                                                 java.lang.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,
                                                 java.lang.String message)
        Instantiates a new no matching service runtime exception.
        Parameters:
        aServiceMatcher - the service matcher
        message - the message
      • NoMatchingServiceRuntimeException

        public NoMatchingServiceRuntimeException​(ServiceMatcher<?> aServiceMatcher,
                                                 java.lang.Throwable aCause,
                                                 java.lang.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,
                                                 java.lang.Throwable cause)
        Instantiates a new no matching service runtime exception.
        Parameters:
        aServiceMatcher - the service matcher
        cause - the cause