EmptyStackException  |  API reference  |  Android Developers (original) (raw)

open class EmptyStackException : RuntimeException

kotlin.Any
kotlin.Throwable
java.lang.Exception
java.lang.RuntimeException

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

Summary

Public constructors
EmptyStackException() Constructs a new EmptyStackException with null as its error message string.

Public constructors

EmptyStackException

EmptyStackException()

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

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.