Module org.refcodes.servicebus
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:
Serializable
,org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
,ServiceMatcherAccessor
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:
-
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
ConstructorsConstructorDescriptionNoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String message) Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String aMessage, String aErrorCode) Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String message, Throwable cause) Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, Throwable cause) Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, Throwable aCause, String aErrorCode) Instantiates a new no matching service runtime exception. -
Method Summary
Modifier and TypeMethodDescriptionGets the service matcher.Methods inherited from class org.refcodes.exception.AbstractRuntimeException
getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoMatchingServiceRuntimeException
public NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, String aMessage, 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, String aMessage, Throwable aCause, 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, String message, Throwable cause) Instantiates a new no matching service runtime exception.- Parameters:
aServiceMatcher
- the service matchermessage
- the messagecause
- the cause
-
NoMatchingServiceRuntimeException
Instantiates a new no matching service runtime exception.- Parameters:
aServiceMatcher
- the service matchermessage
- the message
-
NoMatchingServiceRuntimeException
public NoMatchingServiceRuntimeException(ServiceMatcher<?> aServiceMatcher, Throwable aCause, String aErrorCode) Instantiates a new no matching service runtime exception.- Parameters:
aServiceMatcher
- the service matcheraCause
- the causeaErrorCode
- the error code
-
NoMatchingServiceRuntimeException
Instantiates a new no matching service runtime exception.- Parameters:
aServiceMatcher
- the service matchercause
- the cause
-
-
Method Details
-
getServiceMatcher
Gets the service matcher.- Specified by:
getServiceMatcher
in interfaceServiceMatcherAccessor
- Returns:
- the service matcher
-