java.lang
Class OutOfMemoryError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byjava.lang.VirtualMachineError
              extended byjava.lang.OutOfMemoryError
All Implemented Interfaces:
Serializable

public class OutOfMemoryError
extends VirtualMachineError

This error is thrown when a request is made for more memory either as a result of the running program, or because of the internal behavior of the virtual machine which can not be satisfied using the available platform resources.

See Also:
Serialized Form

Constructor Summary
OutOfMemoryError()
          Constructs a new instance of this class with its walkback filled in.
OutOfMemoryError(java.lang.String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutOfMemoryError

public OutOfMemoryError()
Constructs a new instance of this class with its walkback filled in.


OutOfMemoryError

public OutOfMemoryError(java.lang.String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.

Parameters:
detailMessage - String The detail message for the exception.