Public feed #721432

Mine

public text v1 · immutable
Raw Edit
·published 2007-10-01 07:25 UTC
rendered paste body
                class LexError : std::exception
                {
                        std::string myErrorMessage;
                        public:
                                LexError(std::string errorMessage) :
                                        myErrorMessage(errorMessage) {};
                                virtual const char* what() const throw()
                                {
                                        return myErrorMessage.c_str();
                                }
                                ~LexError() throw() {};
                };