java.lang
Class StackOverflowError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.VirtualMachineError
java.lang.StackOverflowError
- All Implemented Interfaces:
- Serializable
public class StackOverflowError
- extends VirtualMachineError
A StackOverflowError
is thrown when the execution stack
overflow occurs. This often occurs when a method enters infinit recursion.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
StackOverflowError
public StackOverflowError()
- Create an error without a message.
StackOverflowError
public StackOverflowError(String s)
- Create an error with a message.
- Parameters:
s
- the message