24 lines
464 B
C++
24 lines
464 B
C++
//
|
|
// Created by Nik on 23/05/2022.
|
|
//
|
|
|
|
#ifndef NALOGA1101_INVALIDDATEEXCEPTION_H
|
|
#define NALOGA1101_INVALIDDATEEXCEPTION_H
|
|
|
|
#include <exception>
|
|
#include <string>
|
|
|
|
class InvalidDateException : public std::exception{
|
|
private:
|
|
std::string message;
|
|
public:
|
|
explicit InvalidDateException(std::string message);
|
|
|
|
const char* what() const noexcept override;
|
|
|
|
std::string toString();
|
|
};
|
|
|
|
|
|
#endif //NALOGA1101_INVALIDDATEEXCEPTION_H
|