Package java.lang
Class OutOfMemoryError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.VirtualMachineError
-
- java.lang.OutOfMemoryError
-
- All Implemented Interfaces:
Serializable
public class OutOfMemoryError extends VirtualMachineError
Thrown when a request for memory is made that can not be satisfied using the available platform resources. Such a request may be made by both the running application or by an internal function of the VM.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OutOfMemoryError()Constructs a newOutOfMemoryErrorthat includes the current stack trace.OutOfMemoryError(String detailMessage)Constructs a newOutOfMemoryErrorwith the current stack trace and the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OutOfMemoryError
public OutOfMemoryError()
Constructs a newOutOfMemoryErrorthat includes the current stack trace.
-
OutOfMemoryError
public OutOfMemoryError(String detailMessage)
Constructs a newOutOfMemoryErrorwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this error.
-
-