Advertisement
Guest User

JO

a guest
Dec 8th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. public class DynamicStringCollectionException extends Exception {
  2.  
  3.     private int index;
  4.  
  5.     public DynamicStringCollectionException(int index){
  6.         this.index = index;
  7.     }
  8.  
  9.     @Override
  10.     public String getMessage() {
  11.         return "Invalid index: " + index;
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement