- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.util.EmptyStackException
-
- All Implemented Interfaces:
-
Serializable
public class EmptyStackException extends RuntimeException
由Stack
类中的方法抛出,表示堆栈为空。- 从以下版本开始:
- 1.0
- 另请参见:
-
Stack
, Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 EmptyStackException()
构造新的EmptyStackException
作为其错误消息字符串,其中null
为null
。
-
方法摘要
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-