google-cloud-errors - Class Google::Cloud::OutOfRangeError (v1.3.1)

Reference documentation and code samples for the google-cloud-errors class Google::Cloud::OutOfRangeError.

OutOfRange means operation was attempted past the valid range. E.g., seeking or reading past end of file.

Unlike InvalidArgument, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate InvalidArgument if asked to read at an offset that is not in the range [0,2^32-1], but it will generate OutOfRange if asked to read from an offset past the current file size.

There is a fair bit of overlap between FailedPrecondition and OutOfRange. We recommend using OutOfRange (the more specific error) when it applies so that callers who are iterating through a space can easily look for an OutOfRange error to detect when they are done.

Methods

#code

def code() -> Integer

gRPC error code for OUT_OF_RANGE

Returns
  • (Integer)