Creating the Exception class NoValidMessageException