public class RegistrationException extends AeronException
Publications, Subscriptions, or Counters.AeronException.Category| Constructor and Description |
|---|
RegistrationException(long correlationId,
int errorCodeValue,
ErrorCode errorCode,
String msg)
Construct an exception to represent an error which occurred during registration of a resource such as a
Publication, Subscription, or Counter.
|
RegistrationException(RegistrationException cause)
Construct a from another to be nested, useful when exceptions are reported asynchronously and need to be
rethrown from other places in the code.
|
| Modifier and Type | Method and Description |
|---|---|
long |
correlationId()
Get the correlation id of the command to register the resource action.
|
ErrorCode |
errorCode()
Get the
ErrorCode for the specific exception. |
int |
errorCodeValue()
Value of the
errorCode() encoded as an int. |
category, isFataladdSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RegistrationException(long correlationId,
int errorCodeValue,
ErrorCode errorCode,
String msg)
correlationId - of the command to register the resource.errorCodeValue - in case the ErrorCode is unknown to the client version.errorCode - indicating type of error experienced by the media driver.msg - proving more detail.public RegistrationException(RegistrationException cause)
cause - original RegistrationException to be stored as the exception cause.public long correlationId()
public ErrorCode errorCode()
ErrorCode for the specific exception.ErrorCode for the specific exception.public int errorCodeValue()
errorCode() encoded as an int. This can provide additional information when a
ErrorCode.UNKNOWN_CODE_VALUE is returned.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.