Creates an instance with the given message.
message: The message for the exception.
InvalidTimeDataError(this.message, [this.error]);