Package org.refcodes.servicebus
Class UnknownServiceRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.refcodes.exception.AbstractRuntimeException
-
- org.refcodes.servicebus.ServiceBusRuntimeException
-
- org.refcodes.servicebus.UnknownServiceRuntimeException
-
- All Implemented Interfaces:
ServiceAccessor
public class UnknownServiceRuntimeException extends ServiceBusRuntimeException
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:
- 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.ServiceAccessor
ServiceAccessor.ServiceMutator<S extends Service<?>>, ServiceAccessor.ServiceProperty<S extends Service<?>>
-
-
Constructor Summary
Constructors Constructor Description UnknownServiceRuntimeException(Service<?> aService, java.lang.String message)
Instantiates a new unknown service runtime exception.UnknownServiceRuntimeException(Service<?> aService, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new unknown service runtime exception.UnknownServiceRuntimeException(Service<?> aService, java.lang.String message, java.lang.Throwable cause)
Instantiates a new unknown service runtime exception.UnknownServiceRuntimeException(Service<?> aService, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new unknown service runtime exception.UnknownServiceRuntimeException(Service<?> aService, java.lang.Throwable cause)
Instantiates a new unknown service runtime exception.UnknownServiceRuntimeException(Service<?> aService, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new unknown service runtime exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Service
getService()
Gets the service.
-
-
-
Constructor Detail
-
UnknownServiceRuntimeException
public UnknownServiceRuntimeException(Service<?> aService, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new unknown service runtime exception.- Parameters:
aService
- the serviceaMessage
- the messageaErrorCode
- the error code
-
UnknownServiceRuntimeException
public UnknownServiceRuntimeException(Service<?> aService, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new unknown service runtime exception.- Parameters:
aService
- the serviceaMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
UnknownServiceRuntimeException
public UnknownServiceRuntimeException(Service<?> aService, java.lang.String message, java.lang.Throwable cause)
Instantiates a new unknown service runtime exception.- Parameters:
aService
- the servicemessage
- the messagecause
- the cause
-
UnknownServiceRuntimeException
public UnknownServiceRuntimeException(Service<?> aService, java.lang.String message)
Instantiates a new unknown service runtime exception.- Parameters:
aService
- the servicemessage
- the message
-
UnknownServiceRuntimeException
public UnknownServiceRuntimeException(Service<?> aService, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new unknown service runtime exception.- Parameters:
aService
- the serviceaCause
- the causeaErrorCode
- the error code
-
UnknownServiceRuntimeException
public UnknownServiceRuntimeException(Service<?> aService, java.lang.Throwable cause)
Instantiates a new unknown service runtime exception.- Parameters:
aService
- the servicecause
- the cause
-
-
Method Detail
-
getService
public Service getService()
Gets the service.- Specified by:
getService
in interfaceServiceAccessor
- Returns:
- the service
-
-