Google is committed to advancing racial equity for Black communities. See how.
Added in API level 1

EmptyStackException

open class EmptyStackException : RuntimeException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.lang.RuntimeException
   ↳ java.util.EmptyStackException

Thrown by methods in the Stack class to indicate that the stack is empty.

Summary

Public constructors

Constructs a new EmptyStackException with null as its error message string.

Public constructors

<init>

Added in API level 1
EmptyStackException()

Constructs a new EmptyStackException with null as its error message string.