Package io.aeron.archive.client
Class ArchiveException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.aeron.exceptions.AeronException
io.aeron.archive.client.ArchiveException
- All Implemented Interfaces:
Serializable
Exception raised when communicating with the
AeronArchive.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.aeron.exceptions.AeronException
AeronException.Category -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn active listing of recordings is currently in operation on the session.static final intThe recording is currently active so the requested operation is not valid.static final intA subscription is currently active for the requested channel and stream id which would clash.static final intThe archive is rejecting the session because of failed authentication.static final shortThe recording specified for replay is empty.static final intGeneric archive error with detail likely in the message.static final intThe extend-recording operation is not valid for the existing recording.static final intThe archive has reached its maximum concurrent recording sessions.static final intThe archive has reached its maximum concurrent replay sessions.static final intThe replication session failed to connect to the source archive.static final intThe archive storage is at minimum threshold or exhausted.static final intThe principle was not authorised to take the requested action.static final intThe recording identity for the operation is not know to the archive.static final intThe replay identity for the operation is not known to the archive.static final intThe replication identity for this operation is not known to the archive.static final intThe subscription for the requested operation is not known to the archive. -
Constructor Summary
ConstructorsConstructorDescriptionArchiveException(String message) ArchiveException(String message, int errorCode) ArchiveException exception asAeronException.Category.ERROR, plus detail and error code.ArchiveException(String message, int errorCode, long correlationId) ArchiveException exception asAeronException.Category.ERROR, plus detail, error code, and correlation if of the control request.ArchiveException(String message, int errorCode, long correlationId, AeronException.Category category) ArchiveException exception, plus detail, error code, correlation id of control request, andAeronException.Category.ArchiveException(String message, long correlationId, AeronException.Category category) ArchiveException exceptionerrorCode()=GENERIC, plus detail, correlation id of control request, andAeronException.Category.ArchiveException(String message, AeronException.Category category) ArchiveException(String message, Throwable cause, int errorCode) ArchiveException exception asAeronException.Category.ERROR, plus detail, cause, and error code. -
Method Summary
Modifier and TypeMethodDescriptionlongOptional correlation-id associated with a control protocol request.intError code providing more detail into what went wrong.static StringerrorCodeAsString(int errorCode) Return String representation for given error code.Methods inherited from class io.aeron.exceptions.AeronException
category, isFatalMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
GENERIC
public static final int GENERICGeneric archive error with detail likely in the message.- See Also:
-
ACTIVE_LISTING
public static final int ACTIVE_LISTINGAn active listing of recordings is currently in operation on the session.- See Also:
-
ACTIVE_RECORDING
public static final int ACTIVE_RECORDINGThe recording is currently active so the requested operation is not valid.- See Also:
-
ACTIVE_SUBSCRIPTION
public static final int ACTIVE_SUBSCRIPTIONA subscription is currently active for the requested channel and stream id which would clash.- See Also:
-
UNKNOWN_SUBSCRIPTION
public static final int UNKNOWN_SUBSCRIPTIONThe subscription for the requested operation is not known to the archive.- See Also:
-
UNKNOWN_RECORDING
public static final int UNKNOWN_RECORDINGThe recording identity for the operation is not know to the archive.- See Also:
-
UNKNOWN_REPLAY
public static final int UNKNOWN_REPLAYThe replay identity for the operation is not known to the archive.- See Also:
-
MAX_REPLAYS
public static final int MAX_REPLAYSThe archive has reached its maximum concurrent replay sessions.- See Also:
-
MAX_RECORDINGS
public static final int MAX_RECORDINGSThe archive has reached its maximum concurrent recording sessions.- See Also:
-
INVALID_EXTENSION
public static final int INVALID_EXTENSIONThe extend-recording operation is not valid for the existing recording.- See Also:
-
AUTHENTICATION_REJECTED
public static final int AUTHENTICATION_REJECTEDThe archive is rejecting the session because of failed authentication.- See Also:
-
STORAGE_SPACE
public static final int STORAGE_SPACEThe archive storage is at minimum threshold or exhausted.- See Also:
-
UNKNOWN_REPLICATION
public static final int UNKNOWN_REPLICATIONThe replication identity for this operation is not known to the archive.- See Also:
-
UNAUTHORISED_ACTION
public static final int UNAUTHORISED_ACTIONThe principle was not authorised to take the requested action.- See Also:
-
REPLICATION_CONNECTION_FAILURE
public static final int REPLICATION_CONNECTION_FAILUREThe replication session failed to connect to the source archive.- See Also:
-
EMPTY_RECORDING
public static final short EMPTY_RECORDINGThe recording specified for replay is empty.- See Also:
-
-
Constructor Details
-
ArchiveException
public ArchiveException() -
ArchiveException
- Parameters:
message- providing detail.
-
ArchiveException
ArchiveException exception asAeronException.Category.ERROR, plus detail and error code.- Parameters:
message- providing detail.errorCode- for type.
-
ArchiveException
ArchiveException exception asAeronException.Category.ERROR, plus detail, cause, and error code.- Parameters:
message- providing detail.cause- of the error.errorCode- for type.
-
ArchiveException
ArchiveException exception asAeronException.Category.ERROR, plus detail, error code, and correlation if of the control request.- Parameters:
message- providing detail.errorCode- for type.correlationId- of the control request.
-
ArchiveException
- Parameters:
message- providing detail.category- for type.
-
ArchiveException
ArchiveException exceptionerrorCode()=GENERIC, plus detail, correlation id of control request, andAeronException.Category.- Parameters:
message- providing detail.correlationId- of the control request.category- for type.
-
ArchiveException
public ArchiveException(String message, int errorCode, long correlationId, AeronException.Category category) ArchiveException exception, plus detail, error code, correlation id of control request, andAeronException.Category.- Parameters:
message- providing detail.errorCode- for type.correlationId- of the control request.category- for type.
-
-
Method Details
-
errorCode
public int errorCode()Error code providing more detail into what went wrong.- Returns:
- code providing more detail into what went wrong.
-
correlationId
public long correlationId()Optional correlation-id associated with a control protocol request. Will beAeron.NULL_VALUEif not set.- Returns:
- correlation-id associated with a control protocol request.
-
errorCodeAsString
Return String representation for given error code.- Parameters:
errorCode- to convert.- Returns:
- error code string.
-