#ifndef EXCEPTIONS_H #define EXCEPTIONS_H /// Defines the exceptions used in this program #include class InvalidInteger : public std::runtime_error { public: InvalidInteger(std::string const& s) : std::runtime_error(s) {} }; class InvalidDecimal : public std::runtime_error { public: InvalidDecimal(std::string const& s) : std::runtime_error(s) {} }; class StringBufferOverflow : public std::runtime_error { public: StringBufferOverflow(std::string const& s) : std::runtime_error(s) {} }; class FileIOError : public std::runtime_error { public: FileIOError(std::string const& s) : std::runtime_error(s) {} }; class InternalError : public std::runtime_error { public: InternalError(std::string const& s) : std::runtime_error(s) {} }; #endif /* EXCEPTIONS_H */