* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates * and open the template in the editor. */ package assignment10; /** * * @author */ public class InvalidMonthNameException extends Exception { /** * Creates a new instance of <code>InvalidMonthNameException</code> without * detail message. */ public InvalidMonthNameException() { super("!!ERROR!!: The Name of the Month is not valid."); } /** * Constructs an instance of <code>InvalidMonthNameException</code> with the * specified detail message. * * @param n the detail message. */ public InvalidMonthNameException(String n) { super( " !!ERROR!! '" + n + "' is not a valid Month name"); } }