public class ArchiveException extends AeronException
AeronArchive.AeronException.Category| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_LISTING
An active listing of recordings is currently in operation on the session.
|
static int |
ACTIVE_RECORDING
The recording is currently active so the requested operation is not valid.
|
static int |
ACTIVE_SUBSCRIPTION
A subscription is currently active for the requested channel and stream id which would clash.
|
static int |
AUTHENTICATION_REJECTED
The archive is rejecting the session because of failed authentication.
|
static int |
GENERIC
Generic archive error with detail likely in the message.
|
static int |
INVALID_EXTENSION
The extend recording operation is not valid for the existing recording.
|
static int |
MAX_RECORDINGS
The archive has reached its maximum concurrent recording sessions.
|
static int |
MAX_REPLAYS
The archive has reached its maximum concurrent replay sessions.
|
static int |
UNKNOWN_RECORDING
The recording identity for the operation is not know to the archive.
|
static int |
UNKNOWN_REPLAY
The replay identity for the operation is not know to the archive.
|
static int |
UNKNOWN_SUBSCRIPTION
The subscription for the requested operation is not known to the archive.
|
| Constructor and Description |
|---|
ArchiveException()
|
ArchiveException(String message)
|
ArchiveException(String message,
AeronException.Category category)
|
ArchiveException(String message,
int errorCode)
ArchiveException exception of
AeronException.Category.ERROR, plus detail and
error code. |
ArchiveException(String message,
int errorCode,
long correlationId)
ArchiveException exception of
AeronException.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,
and
AeronException.Category. |
ArchiveException(String message,
long correlationId,
AeronException.Category category)
ArchiveException exception
errorCode() = GENERIC, plus detail, correlation id of control
request, and AeronException.Category. |
ArchiveException(String message,
Throwable cause,
int errorCode)
ArchiveException exception of
AeronException.Category.ERROR, plus detail, cause,
and error code. |
| Modifier and Type | Method and Description |
|---|---|
long |
correlationId()
Optional correlation-id associated with a control protocol request.
|
int |
errorCode()
Error code providing more detail into what went wrong.
|
categoryaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int GENERIC
public static final int ACTIVE_LISTING
public static final int ACTIVE_RECORDING
public static final int ACTIVE_SUBSCRIPTION
public static final int UNKNOWN_SUBSCRIPTION
public static final int UNKNOWN_RECORDING
public static final int UNKNOWN_REPLAY
public static final int MAX_REPLAYS
public static final int MAX_RECORDINGS
public static final int INVALID_EXTENSION
public static final int AUTHENTICATION_REJECTED
public ArchiveException()
public ArchiveException(String message)
message - providing detail.public ArchiveException(String message, int errorCode)
AeronException.Category.ERROR, plus detail and
error code.message - providing detail.errorCode - for type.public ArchiveException(String message, Throwable cause, int errorCode)
AeronException.Category.ERROR, plus detail, cause,
and error code.message - providing detail.cause - of the error.errorCode - for type.public ArchiveException(String message, int errorCode, long correlationId)
AeronException.Category.ERROR, plus detail, error code,
and correlation if of the control request.message - providing detail.errorCode - for type.correlationId - of the control request.public ArchiveException(String message, AeronException.Category category)
message - providing detail.category - for type.public ArchiveException(String message, long correlationId, AeronException.Category category)
errorCode() = GENERIC, plus detail, correlation id of control
request, and AeronException.Category.message - providing detail.correlationId - of the control request.category - for type.public ArchiveException(String message, int errorCode, long correlationId, AeronException.Category category)
AeronException.Category.message - providing detail.errorCode - for type.correlationId - of the control request.category - for type.public int errorCode()
public long correlationId()
Aeron.NULL_VALUE if
not set.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.