Module java.base
Package java.lang

Class StackOverflowError

java.lang.Object
java.lang.Throwable
All Implemented Interfaces:
Serializable

public classStackOverflowErrorextendsVirtualMachineError
Thrown when a stack overflow occurs because an application recurses too deeply.
Since:
1.0
See Also:
  • Constructor Details

    • StackOverflowError

      public StackOverflowError()
      Constructs aStackOverflowError with no detail message.
    • StackOverflowError

      public StackOverflowError(String s)
      Constructs aStackOverflowError with the specified detail message.
      Parameters:
      s - the detail message.