|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
java.lang.VirtualMachineError
java.lang.OutOfMemoryError
public class OutOfMemoryError
An OutOfMemoryException is a signal from the virtual machine that a memory allocation has failed because not enough free memory was available. A virtual machine only signals an OutOfMemoryError after it has tried very hard to free some memory (i.e. it has done a complete garbage collection cycle.)
Constructor Summary | |
---|---|
OutOfMemoryError()
Constructor for an OutOfMemoryError with no detail message. |
|
OutOfMemoryError(String s)
Constructor for an OutOfMemoryError with given detail message. |
Method Summary | |
---|---|
void |
printStackTrace(PrintStream s)
This method prints the stackTrace to the given PrintWriter. |
void |
printStackTrace(PrintWriter s)
This method prints the stackTrace to the given PrintWriter. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OutOfMemoryError()
public OutOfMemoryError(String s)
ensures
(s != null IMPLIES getMessage().equals(s));
s
- the detail message.Method Detail |
---|
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
s
- the PrintWriter to write to.public void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
s
- the PrintWriter to write to.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |