Package io.etcd.jetcd.common.exception
Class EtcdException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.etcd.jetcd.common.exception.EtcdException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClosedClientException,ClosedKeepAliveListenerException,ClosedSnapshotException,ClosedWatcherException,CompactedException
Base exception type for all exceptions produced by the etcd service.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the error code associated with this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getErrorCode
Returns the error code associated with this exception.- Returns:
- a
ErrorCode
-