outOfMemory static method

ResourceException outOfMemory(
  1. OutOfMemoryError cause
)

Equivalent to a 507 HTTP error.

Used when the requested range is too large to be read in memory.

Implementation

static ResourceException outOfMemory(OutOfMemoryError cause) =>
    ResourceException._("r2_shared_resource_exception_out_of_memory",
        cause: cause);