Class ReplicationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.bookkeeper.replication.ReplicationException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ReplicationException.BKAuditException
,ReplicationException.CompatibilityException
,ReplicationException.UnavailableException
public abstract class ReplicationException extends java.lang.Exception
Exceptions for use within the replication service.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReplicationException.BKAuditException
Exception while auditing bookie-ledgers.static class
ReplicationException.CompatibilityException
Compatibility error.static class
ReplicationException.NonRecoverableReplicationException
The replication service encountered an error that requires service restart.static class
ReplicationException.UnavailableException
The replication service has become unavailable.
-
Field Summary
Fields Modifier and Type Field Description static java.util.function.Function<java.lang.Throwable,ReplicationException>
EXCEPTION_HANDLER
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReplicationException(java.lang.String message)
protected
ReplicationException(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReplicationException.UnavailableException
fromKeeperException(java.lang.String message, org.apache.zookeeper.KeeperException ke)
-
-
-
Field Detail
-
EXCEPTION_HANDLER
public static final java.util.function.Function<java.lang.Throwable,ReplicationException> EXCEPTION_HANDLER
-
-
Method Detail
-
fromKeeperException
public static ReplicationException.UnavailableException fromKeeperException(java.lang.String message, org.apache.zookeeper.KeeperException ke)
-
-