Google is committed to advancing racial equity for Black communities. See how.
Added in API level 1

OutOfMemoryError

open class OutOfMemoryError : VirtualMachineError
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Error
   ↳ java.lang.VirtualMachineError
   ↳ java.lang.OutOfMemoryError

Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector. OutOfMemoryError objects may be constructed by the virtual machine as if Throwable#Throwable(String, Throwable,.

Summary

Public constructors

Constructs an OutOfMemoryError with no detail message.

Constructs an OutOfMemoryError with the specified detail message.

Public constructors

<init>

Added in API level 1
OutOfMemoryError()

Constructs an OutOfMemoryError with no detail message.

<init>

Added in API level 1
OutOfMemoryError(s: String!)

Constructs an OutOfMemoryError with the specified detail message.

Parameters
s String!: the detail message.