17 lines
287 B
C++
17 lines
287 B
C++
#ifndef Person_Exception_h
|
|
#define Person_Exception_h
|
|
|
|
#include <exception>
|
|
#include <string>
|
|
|
|
class PersonException : public std::exception {
|
|
public:
|
|
PersonException(std::string m);
|
|
const char *what() const throw();
|
|
|
|
private:
|
|
std::string msg;
|
|
};
|
|
|
|
#endif
|