Class ArchiveException

All Implemented Interfaces:
Serializable

public class ArchiveException extends AeronException
Exception raised when communicating with the AeronArchive.
See Also:
  • Field Details

    • GENERIC

      public static final int GENERIC
      Generic archive error with detail likely in the message.
      See Also:
    • ACTIVE_LISTING

      public static final int ACTIVE_LISTING
      An active listing of recordings is currently in operation on the session.
      See Also:
    • ACTIVE_RECORDING

      public static final int ACTIVE_RECORDING
      The recording is currently active so the requested operation is not valid.
      See Also:
    • ACTIVE_SUBSCRIPTION

      public static final int ACTIVE_SUBSCRIPTION
      A subscription is currently active for the requested channel and stream id which would clash.
      See Also:
    • UNKNOWN_SUBSCRIPTION

      public static final int UNKNOWN_SUBSCRIPTION
      The subscription for the requested operation is not known to the archive.
      See Also:
    • UNKNOWN_RECORDING

      public static final int UNKNOWN_RECORDING
      The recording identity for the operation is not know to the archive.
      See Also:
    • UNKNOWN_REPLAY

      public static final int UNKNOWN_REPLAY
      The replay identity for the operation is not known to the archive.
      See Also:
    • MAX_REPLAYS

      public static final int MAX_REPLAYS
      The archive has reached its maximum concurrent replay sessions.
      See Also:
    • MAX_RECORDINGS

      public static final int MAX_RECORDINGS
      The archive has reached its maximum concurrent recording sessions.
      See Also:
    • INVALID_EXTENSION

      public static final int INVALID_EXTENSION
      The extend-recording operation is not valid for the existing recording.
      See Also:
    • AUTHENTICATION_REJECTED

      public static final int AUTHENTICATION_REJECTED
      The archive is rejecting the session because of failed authentication.
      See Also:
    • STORAGE_SPACE

      public static final int STORAGE_SPACE
      The archive storage is at minimum threshold or exhausted.
      See Also:
    • UNKNOWN_REPLICATION

      public static final int UNKNOWN_REPLICATION
      The replication identity for this operation is not known to the archive.
      See Also:
    • UNAUTHORISED_ACTION

      public static final int UNAUTHORISED_ACTION
      The principle was not authorised to take the requested action.
      See Also:
    • REPLICATION_CONNECTION_FAILURE

      public static final int REPLICATION_CONNECTION_FAILURE
      The replication session failed to connect to the source archive.
      See Also:
    • EMPTY_RECORDING

      public static final short EMPTY_RECORDING
      The recording specified for replay is empty.
      See Also:
  • Constructor Details

    • ArchiveException

      public ArchiveException()
      Default ArchiveException exception as AeronException.Category.ERROR and errorCode() = GENERIC.
    • ArchiveException

      public ArchiveException(String message)
      ArchiveException exception as AeronException.Category.ERROR and errorCode() = GENERIC, plus detail.
      Parameters:
      message - providing detail.
    • ArchiveException

      public ArchiveException(String message, int errorCode)
      ArchiveException exception as AeronException.Category.ERROR, plus detail and error code.
      Parameters:
      message - providing detail.
      errorCode - for type.
    • ArchiveException

      public ArchiveException(String message, Throwable cause, int errorCode)
      ArchiveException exception as AeronException.Category.ERROR, plus detail, cause, and error code.
      Parameters:
      message - providing detail.
      cause - of the error.
      errorCode - for type.
    • ArchiveException

      public ArchiveException(String message, int errorCode, long correlationId)
      ArchiveException exception as AeronException.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

      public ArchiveException(String message, AeronException.Category category)
      ArchiveException exception errorCode() = GENERIC, plus detail and AeronException.Category.
      Parameters:
      message - providing detail.
      category - for type.
    • ArchiveException

      public ArchiveException(String message, long correlationId, AeronException.Category category)
      ArchiveException exception errorCode() = GENERIC, plus detail, correlation id of control request, and AeronException.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, and AeronException.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 be Aeron.NULL_VALUE if not set.
      Returns:
      correlation-id associated with a control protocol request.
    • errorCodeAsString

      public static String errorCodeAsString(int errorCode)
      Return String representation for given error code.
      Parameters:
      errorCode - to convert.
      Returns:
      error code string.