Skip to content

Instantly share code, notes, and snippets.

@basavesh
Created November 9, 2012 08:36
Show Gist options
  • Save basavesh/4044479 to your computer and use it in GitHub Desktop.
Save basavesh/4044479 to your computer and use it in GitHub Desktop.
EmptyListException.java
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