Package io.etcd.jetcd.common.exception
Class EtcdExceptionFactory
- java.lang.Object
-
- io.etcd.jetcd.common.exception.EtcdExceptionFactory
-
public final class EtcdExceptionFactory extends java.lang.ObjectA factory for creating instances ofEtcdExceptionand its subtypes.
-
-
Constructor Summary
Constructors Constructor Description EtcdExceptionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EtcdExceptionhandleInterrupt(java.lang.InterruptedException e)static ClosedKeepAliveListenerExceptionnewClosedKeepAliveListenerException()static ClosedClientExceptionnewClosedLeaseClientException()static ClosedSnapshotExceptionnewClosedSnapshotException()static ClosedClientExceptionnewClosedWatchClientException()static ClosedWatcherExceptionnewClosedWatcherException()static CompactedExceptionnewCompactedException(long compactedRev)static EtcdExceptionnewEtcdException(ErrorCode code, java.lang.String message)static EtcdExceptionnewEtcdException(ErrorCode code, java.lang.String message, java.lang.Throwable cause)static EtcdExceptiontoEtcdException(io.grpc.Status status)static EtcdExceptiontoEtcdException(java.lang.Throwable cause)
-
-
-
Method Detail
-
newEtcdException
public static EtcdException newEtcdException(ErrorCode code, java.lang.String message)
-
newEtcdException
public static EtcdException newEtcdException(ErrorCode code, java.lang.String message, java.lang.Throwable cause)
-
newCompactedException
public static CompactedException newCompactedException(long compactedRev)
-
newClosedWatcherException
public static ClosedWatcherException newClosedWatcherException()
-
newClosedWatchClientException
public static ClosedClientException newClosedWatchClientException()
-
newClosedLeaseClientException
public static ClosedClientException newClosedLeaseClientException()
-
newClosedKeepAliveListenerException
public static ClosedKeepAliveListenerException newClosedKeepAliveListenerException()
-
newClosedSnapshotException
public static ClosedSnapshotException newClosedSnapshotException()
-
handleInterrupt
public static EtcdException handleInterrupt(java.lang.InterruptedException e)
-
toEtcdException
public static EtcdException toEtcdException(java.lang.Throwable cause)
-
toEtcdException
public static EtcdException toEtcdException(io.grpc.Status status)
-
-