/* PIA - Lenguajes Modernos de Programación * FACULTAD DE CIENCIAS FÍSICO MATEMÁTICAS * Luis Sebastián Martínez Vega - LCC */ #include #ifndef EXCEPTIONS_H #define EXCEPTIONS_H class Exception{ private: std::string error_msg; public: explicit Exception(const std::string &error_msg): error_msg(error_msg){} std::string showMsg() const; }; class LexerException: public Exception{ public: explicit LexerException(const std::string &error_msg): Exception(error_msg){} }; class ParserException: public Exception{ public: explicit ParserException(const std::string &error_msg): Exception(error_msg){} }; #endif /* EXCEPTIONS_H */