# Class StackOverflowError

java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.VirtualMachineError
java.lang.StackOverflowError

public class StackOverflowError extends VirtualMachineError

Thrown when a stack overflow occurs because an application recurses too deeply.

Present on every target -- ParparVM's `java.lang` has it, and so does every JVM the simulator runs on. It was simply missing from this stub, so framework code could not name the error it wanted to throw.

Since: JDK1.0, CLDC 1.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StackOverflowError()`
  Constructs a StackOverflowError with no detail message.
  `StackOverflowError(String s)`
  Constructs a StackOverflowError with the specified detail message.

- ## Method Summary

  ### Methods inherited from class Throwable

  `addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### StackOverflowError

    public StackOverflowError()
    Constructs a StackOverflowError with no detail message.

  - ### StackOverflowError

    public StackOverflowError(String s)
    Constructs a StackOverflowError with the specified detail message. s - the detail message.