Package io.aeron.exceptions
Class StorageSpaceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.aeron.exceptions.AeronException
io.aeron.exceptions.StorageSpaceException
- All Implemented Interfaces:
Serializable
A request to allocate a resource (e.g. log buffer) failed due to insufficient storage space available.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.aeron.exceptions.AeronException
AeronException.Category -
Constructor Summary
ConstructorsConstructorDescriptionStorageSpaceException(String message) Construct the exception for the with detailed message. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisStorageSpaceError(Throwable error) Check if given exception denotes an out of disc space error, i.e.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
-
StorageSpaceException
Construct the exception for the with detailed message.- Parameters:
message- detail for the exception.
-
-
Method Details
-
isStorageSpaceError
Check if given exception denotes an out of disc space error, i.e. which on Linux is represented by error codeENOSPC(28)and on Windows by error codeERROR_DISK_FULL(112).- Parameters:
error- to check.- Returns:
trueif cause isIOExceptionwith a specific error.
-