Class EtcdExceptionFactory


  • public final class EtcdExceptionFactory
    extends java.lang.Object
    A factory for creating instances of EtcdException and its subtypes.
    • Constructor Detail

      • EtcdExceptionFactory

        public EtcdExceptionFactory()
    • 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)
      • 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)