invalid month name exception java

Download Invalid Month Name Exception Java

If you can't read please download the document

Upload: crystal-smith

Post on 31-Jan-2016

10 views

Category:

Documents


2 download

DESCRIPTION

java early objects assignment 10

TRANSCRIPT

/* * 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 InvalidMonthNameException without * detail message. */ public InvalidMonthNameException() { super("!!ERROR!!: The Name of the Month is not valid."); } /** * Constructs an instance of InvalidMonthNameException with the * specified detail message. * * @param n the detail message. */ public InvalidMonthNameException(String n) { super( " !!ERROR!! '" + n + "' is not a valid Month name"); }}