Package io.aeron.exceptions
Class AeronException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.aeron.exceptions.AeronException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ActiveDriverException,AeronEvent,ArchiveException,AuthenticationException,ChannelEndpointException,ClusterException,ConcurrentConcludeException,ConfigurationException,ControlProtocolException,RegistrationException,StorageSpaceException,TimeoutException,UnknownSubscriptionException
Base Aeron exception for catching all Aeron specific errors.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDefault Aeron exception asAeronException.Category.ERROR.AeronException(AeronException.Category category) Default Aeron exception with providedAeronException.Category.AeronException(String message) Aeron exception with provided message andAeronException.Category.ERROR.AeronException(String message, AeronException.Category category) Aeron exception with a detailed message and providedAeronException.Category.AeronException(String message, Throwable cause) Aeron exception with a detailed message, cause, andAeronException.Category.ERROR.AeronException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new Aeron exception with a detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled, in the categoryAeronException.Category.ERROR.AeronException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, AeronException.Category category) Constructs a new Aeron exception with a detail message, cause, suppression enabled or disabled, writable stack trace enabled or disabled, anAeronException.Category.AeronException(String message, Throwable cause, AeronException.Category category) Aeron exception with a detailed message, cause, andAeronException.Category.AeronException(Throwable cause) Aeron exception with provided cause andAeronException.Category.ERROR.AeronException(Throwable cause, AeronException.Category category) Aeron exception with cause and providedAeronException.Category. -
Method Summary
Modifier and TypeMethodDescriptioncategory()AeronException.Categoryof exception for determining what follow-up action can be taken.static booleanMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AeronException
public AeronException()Default Aeron exception asAeronException.Category.ERROR. -
AeronException
Default Aeron exception with providedAeronException.Category.- Parameters:
category- of this exception.
-
AeronException
Aeron exception with provided message andAeronException.Category.ERROR.- Parameters:
message- to detail the exception.
-
AeronException
Aeron exception with provided cause andAeronException.Category.ERROR.- Parameters:
cause- of the error.
-
AeronException
Aeron exception with a detailed message and providedAeronException.Category.- Parameters:
message- providing detail on the error.category- of the exception.
-
AeronException
Aeron exception with a detailed message, cause, andAeronException.Category.ERROR.- Parameters:
message- providing detail on the error.cause- of the error.
-
AeronException
Aeron exception with cause and providedAeronException.Category.- Parameters:
cause- of the error.category- of the exception.
-
AeronException
Aeron exception with a detailed message, cause, andAeronException.Category.- Parameters:
message- providing detail on the error.cause- of the error.category- of the exception.
-
AeronException
public AeronException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new Aeron exception with a detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled, in the categoryAeronException.Category.ERROR.- Parameters:
message- providing detail on the error.cause- of the error.enableSuppression- is suppression enabled or not.writableStackTrace- is the stack trace writable or not.
-
AeronException
public AeronException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, AeronException.Category category) Constructs a new Aeron exception with a detail message, cause, suppression enabled or disabled, writable stack trace enabled or disabled, anAeronException.Category.- Parameters:
message- providing detail on the error.cause- of the error.enableSuppression- is suppression enabled or not.writableStackTrace- is the stack trace writable or not.category- of the exception.
-
-
Method Details
-
category
AeronException.Categoryof exception for determining what follow-up action can be taken.- Returns:
AeronException.Categoryof exception for determining what follow-up action can be taken.
-
isFatal
- Parameters:
t- throwable to check if fatal.- Returns:
- true if this is an AeronException with a category set to
AeronException.Category.FATAL, false otherwise.
-