Package io.aeron.exceptions
Class RegistrationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.aeron.exceptions.AeronException
io.aeron.exceptions.RegistrationException
- All Implemented Interfaces:
Serializable
Caused when an error occurs during addition, modification, or release of client resources such as
Publications, Subscriptions, or Counters.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.aeron.exceptions.AeronException
AeronException.Category -
Constructor Summary
ConstructorsConstructorDescriptionRegistrationException(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.Construct a from another to be nested, useful when exceptions are reported asynchronously and need to be rethrown from other places in the code. -
Method Summary
Modifier and TypeMethodDescriptionlongGet the correlation id of the command to register the resource action.Get theErrorCodefor the specific exception.intValue of theerrorCode()encoded as an int.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
-
Constructor Details
-
RegistrationException
public 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.- Parameters:
correlationId- of the command to register the resource.errorCodeValue- in case theErrorCodeis unknown to the client version.errorCode- indicating type of error experienced by the media driver.msg- proving more detail.
-
RegistrationException
Construct a from another to be nested, useful when exceptions are reported asynchronously and need to be rethrown from other places in the code.- Parameters:
cause- original RegistrationException to be stored as the exception cause.
-
-
Method Details
-
correlationId
public long correlationId()Get the correlation id of the command to register the resource action.- Returns:
- the correlation id of the command to register the resource action.
-
errorCode
Get theErrorCodefor the specific exception.- Returns:
- the
ErrorCodefor the specific exception.
-
errorCodeValue
public int errorCodeValue()Value of theerrorCode()encoded as an int. This can provide additional information when aErrorCode.UNKNOWN_CODE_VALUEis returned.- Returns:
- value of the errorCode encoded as an int.
-