Package org.refcodes.servicebus
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:
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty
-
Nested classes/interfaces inherited from interface org.refcodes.servicebus.ServiceMatcherAccessor
ServiceMatcherAccessor.ServiceMatcherMutator, ServiceMatcherAccessor.ServiceMatcherProperty
-
-
Constructor Summary
Constructors Constructor Description NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, java.lang.String message)
Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, java.lang.String message, java.lang.Throwable cause)
Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, java.lang.Throwable cause)
Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new no matching service runtime exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceMatcher<?>
getServiceMatcher()
Gets the service matcher.
-
-
-
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 matcheraMessage
- the messageaErrorCode
- 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 matcheraMessage
- the messageaCause
- the causeaErrorCode
- 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 matchermessage
- the messagecause
- the cause
-
NoMatchingServiceRuntimeException
public NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, java.lang.String message)
Instantiates a new no matching service runtime exception.- Parameters:
aServiceMatcher
- the service matchermessage
- 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 matcheraCause
- the causeaErrorCode
- the error code
-
NoMatchingServiceRuntimeException
public NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, java.lang.Throwable cause)
Instantiates a new no matching service runtime exception.- Parameters:
aServiceMatcher
- the service matchercause
- the cause
-
-
Method Detail
-
getServiceMatcher
public ServiceMatcher<?> getServiceMatcher()
Gets the service matcher.- Specified by:
getServiceMatcher
in interfaceServiceMatcherAccessor
- Returns:
- the service matcher
-
-