data_structures_free
This commit is contained in:
16
net/datastructures/EmptyStackException.java
Normal file
16
net/datastructures/EmptyStackException.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package net.datastructures;
|
||||
//begin#fragment EmptyStackException
|
||||
/**
|
||||
* Runtime exception thrown when one tries to perform operation top or
|
||||
* pop on an empty stack.
|
||||
//end#fragment EmptyStackException
|
||||
* @author Roberto Tamassia
|
||||
//begin#fragment EmptyStackException
|
||||
*/
|
||||
|
||||
public class EmptyStackException extends RuntimeException {
|
||||
public EmptyStackException(String err) {
|
||||
super(err);
|
||||
}
|
||||
}
|
||||
//end#fragment EmptyStackException
|
||||
Reference in New Issue
Block a user