Class ServiceInstanceClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
io.axoniq.framework.springcloud.discovery.ServiceInstanceClientException
- All Implemented Interfaces:
Serializable
Indicates a
ServiceInstance answered a request for its
capabilities with a client error.
A client error means the instance is reachable but is not serving the capabilities endpoint — it is another service
altogether, or an older version of this one. Retrying it on every discovery heartbeat is wasted work, so
IgnoreListingDiscoveryMode treats this exception as the signal to stop asking for a while. A connection
failure or a server error is a different matter, and is not reported through this exception: the instance
is expected back.
- Since:
- 5.4.0
- Author:
- Allard Buijze, Steven van Beelen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServiceInstanceClientException(String message) Initializes aServiceInstanceClientExceptionusing the givenmessage.ServiceInstanceClientException(String message, Throwable cause) Initializes aServiceInstanceClientExceptionusing the givenmessageandcause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceInstanceClientException
Initializes aServiceInstanceClientExceptionusing the givenmessage.- Parameters:
message- the message describing the exception
-
ServiceInstanceClientException
Initializes aServiceInstanceClientExceptionusing the givenmessageandcause.- Parameters:
message- the message describing the exceptioncause- the client error that led to this exception
-