I try to Create a custom unchecked exception class called InvalidDateException. This exception class must include a constructor that takes a String as an argument. But I wonder is my code is custom unchecked exception or not.
class InvalidDateException extends RuntimeException
{
//Parameterless Constructor
public WordContainsException() {}
//Constructor that accepts a message
public InvalidDateException(String message)
{
super(message);
}
}