Package alluxio.exception.status
Class OutOfRangeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- alluxio.exception.status.AlluxioStatusException
-
- alluxio.exception.status.OutOfRangeException
-
- All Implemented Interfaces:
java.io.Serializable
public class OutOfRangeException extends AlluxioStatusException
Exception indicating that and operation was attempted past the valid range. E.g., seeking or reading past end of file. Unlike InvalidArgumentException, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate InvalidArgumentException if asked to read at an offset that is not in the range [0,2^32-1], but it will generate OutOfRangeException if asked to read from an offset past the current file size. There is a fair bit of overlap between FailedPreconditionException and OutOfRangeException. We recommend using OutOfRangeException (the more specific error) when it applies so that callers who are iterating through a space can easily look for an OutOfRangeException to detect when they are done.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OutOfRangeException(java.lang.String message)
OutOfRangeException(java.lang.String message, java.lang.Throwable cause)
OutOfRangeException(java.lang.Throwable cause)
-
Method Summary
-
Methods inherited from class alluxio.exception.status.AlluxioStatusException
from, fromAlluxioException, fromCheckedException, fromIOException, fromStatusRuntimeException, fromThrowable, getStatus, getStatusCode, toAlluxioException, toGrpcStatusException
-
-
-
-
Constructor Detail
-
OutOfRangeException
public OutOfRangeException(java.lang.String message)
- Parameters:
message
- the exception message
-
OutOfRangeException
public OutOfRangeException(java.lang.Throwable cause)
- Parameters:
cause
- the cause of the exception
-
OutOfRangeException
public OutOfRangeException(java.lang.String message, java.lang.Throwable cause)
- Parameters:
message
- the exception messagecause
- the cause of the exception
-
-