Created
November 9, 2012 08:36
-
-
Save basavesh/4044479 to your computer and use it in GitHub Desktop.
EmptyListException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.cmu.cs771.hw1; | |
/** | |
* Class EmptyListException definition. | |
* @author songluo | |
* | |
*/ | |
public class EmptyListException extends RuntimeException{ | |
/** | |
* no-argument constructor | |
*/ | |
public EmptyListException(){ | |
this("List"); | |
} | |
/** | |
* one-argument constructor | |
* @param str the name of List | |
*/ | |
public EmptyListException(String str){ | |
super( "is Empty" ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment