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 writable.

Summary

Public constructors

Constructs an OutOfMemoryError with no detail message.

Constructs an OutOfMemoryError with the specified detail message.

Public constructors

OutOfMemoryError

Added in API level 1
OutOfMemoryError()

Constructs an OutOfMemoryError with no detail message.

OutOfMemoryError

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

Constructs an OutOfMemoryError with the specified detail message.

Parameters
s String!: the detail message.