Module org.refcodes.servicebus
Package org.refcodes.servicebus
Class DuplicateServiceRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.servicebus.ServiceBusRuntimeException
org.refcodes.servicebus.DuplicateServiceRuntimeException
- All Implemented Interfaces:
Serializable
,org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
,ServiceAccessor
This exception is thrown whenever a service, which cannot be distinguished
from another service, is added to the service bus. In such a case, no matcher
would be able to match exactly one of them services, we would end up with a
non deterministic system.
- 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.ServiceAccessor
ServiceAccessor.ServiceMutator<S extends Service<?>>, ServiceAccessor.ServiceProperty<S extends Service<?>>
-
Constructor Summary
ConstructorDescriptionDuplicateServiceRuntimeException
(Service<?> aService, String message) Instantiates a new duplicate service runtime exception.DuplicateServiceRuntimeException
(Service<?> aService, String aMessage, String aErrorCode) Instantiates a new duplicate service runtime exception.DuplicateServiceRuntimeException
(Service<?> aService, String message, Throwable cause) Instantiates a new duplicate service runtime exception.DuplicateServiceRuntimeException
(Service<?> aService, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new duplicate service runtime exception.DuplicateServiceRuntimeException
(Service<?> aService, Throwable cause) Instantiates a new duplicate service runtime exception.DuplicateServiceRuntimeException
(Service<?> aService, Throwable aCause, String aErrorCode) Instantiates a new duplicate service runtime exception. -
Method Summary
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
-
DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.- Parameters:
aService
- the serviceaMessage
- the messageaErrorCode
- the error code
-
DuplicateServiceRuntimeException
public DuplicateServiceRuntimeException(Service<?> aService, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new duplicate service runtime exception.- Parameters:
aService
- the serviceaMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.- Parameters:
aService
- the servicemessage
- the messagecause
- the cause
-
DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.- Parameters:
aService
- the servicemessage
- the message
-
DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.- Parameters:
aService
- the serviceaCause
- the causeaErrorCode
- the error code
-
DuplicateServiceRuntimeException
Instantiates a new duplicate service runtime exception.- Parameters:
aService
- the servicecause
- the cause
-
-
Method Details
-
getService
Gets the service.- Specified by:
getService
in interfaceServiceAccessor
- Returns:
- the service
-