public final class EtcdExceptionFactory extends Object
EtcdException and its subtypes.| Constructor and Description |
|---|
EtcdExceptionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static EtcdException |
handleInterrupt(InterruptedException e) |
static ClosedKeepAliveListenerException |
newClosedKeepAliveListenerException() |
static ClosedClientException |
newClosedLeaseClientException() |
static ClosedSnapshotException |
newClosedSnapshotException() |
static ClosedClientException |
newClosedWatchClientException() |
static ClosedWatcherException |
newClosedWatcherException() |
static CompactedException |
newCompactedException(long compactedRev) |
static EtcdException |
newEtcdException(ErrorCode code,
String message) |
static EtcdException |
newEtcdException(ErrorCode code,
String message,
Throwable cause) |
static EtcdException |
toEtcdException(io.grpc.Status status) |
static EtcdException |
toEtcdException(Throwable cause) |
public static EtcdException newEtcdException(ErrorCode code, String message)
public static EtcdException newEtcdException(ErrorCode code, String message, Throwable cause)
public static CompactedException newCompactedException(long compactedRev)
public static ClosedWatcherException newClosedWatcherException()
public static ClosedClientException newClosedWatchClientException()
public static ClosedClientException newClosedLeaseClientException()
public static ClosedKeepAliveListenerException newClosedKeepAliveListenerException()
public static ClosedSnapshotException newClosedSnapshotException()
public static EtcdException handleInterrupt(InterruptedException e)
public static EtcdException toEtcdException(Throwable cause)
public static EtcdException toEtcdException(io.grpc.Status status)
Copyright © 2018. All rights reserved.