Searched refs:EmptyStackException (Results 1 - 6 of 6) sorted by relevance

/libcore/luni/src/main/java/java/util/
H A DEmptyStackException.java22 * An {@code EmptyStackException} is thrown if the pop/peek method of a stack is
27 public class EmptyStackException extends RuntimeException { class in inherits:RuntimeException
32 * Constructs a new {@code EmptyStackException} with the stack trace filled
35 public EmptyStackException() { method in class:EmptyStackException
H A DStack.java48 * @throws EmptyStackException
57 throw new EmptyStackException();
65 * @throws EmptyStackException
73 throw new EmptyStackException();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DEmptyStackExceptionTest.java20 import java.util.EmptyStackException;
29 * java.util.EmptyStackException#EmptyStackException()
32 // Test for method java.util.EmptyStackException()
36 } catch (EmptyStackException e) {
39 fail("Expected EmptyStackException not thrown");
H A DStackTest.java20 import java.util.EmptyStackException;
74 fail("EmptyStackException expected");
75 } catch (EmptyStackException e) {
94 } catch (EmptyStackException e) {
96 "a) Pop threw EmptyStackException when stack should not have been empty");
102 } catch (EmptyStackException e) {
104 "b) Pop threw EmptyStackException when stack should not have been empty");
111 } catch (EmptyStackException e) {
113 "c) Pop threw EmptyStackException when stack should not have been empty");
119 "d) Pop did not throw EmptyStackException whe
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
H A DNamespaceSupportTest.java21 import java.util.EmptyStackException;
68 fail("Test 2: EmptyStackException expected.");
69 } catch (EmptyStackException e) {
92 fail("Test 3: EmptyStackException expected.");
93 } catch (EmptyStackException e) {
117 fail("Test 3: EmptyStackException expected.");
118 } catch (EmptyStackException e) {
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DNamespaceSupport.java11 import java.util.EmptyStackException;
245 throw new EmptyStackException();

Completed in 746 milliseconds