Contents | Prev | Next | Index

21.13 The Class java.util.EmptyStackException

A EmptyStackException is thrown to indicate an attempt to pop (§21.12.2) or peek (§21.12.3) an empty Stack object.

public class EmptyStackException extends RuntimeException {
	public EmptyStackException();
}

21.13.1 public EmptyStackException()

This constructor initializes a newly created EmptyStackException with null as its error message string.


Contents | Prev | Next | Index

Java Language Specification (HTML generated by Suzette Pelouch on February 24, 1998)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to [email protected]