From a2e406494e380d3ef256558d9dcf4126d5b7e8be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <Pawel.Kedzia@pwr.wroc.pl> Date: Thu, 25 Nov 2010 15:33:42 +0100 Subject: [PATCH] ParserException inherit from Wccl::WcclError --- libwccl/parser/ParserException.cpp | 2 +- libwccl/parser/ParserException.h | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libwccl/parser/ParserException.cpp b/libwccl/parser/ParserException.cpp index b2ca366..3d5999c 100644 --- a/libwccl/parser/ParserException.cpp +++ b/libwccl/parser/ParserException.cpp @@ -1,6 +1,6 @@ #include <libwccl/parser/ParserException.h> -ParserException::ParserException(std::string msg) +ParserException::ParserException(std::string msg) : WcclError(msg) { this->msg = msg; } diff --git a/libwccl/parser/ParserException.h b/libwccl/parser/ParserException.h index f08294e..a421a67 100644 --- a/libwccl/parser/ParserException.h +++ b/libwccl/parser/ParserException.h @@ -1,15 +1,19 @@ #ifndef LIBWCCL_PARSER_PARSEREXCEPTION_H #define LIBWCCL_PARSER_PARSEREXCEPTION_H +#include <libwccl/exception.h> + #include <string> -class ParserException //TODO derive from std::exception or wcclerror +class ParserException : public Wccl::WcclError { public: ParserException(const std::string); + ~ParserException() throw() { + } // - const std::string info() const { return this->msg; } + std::string info() const { return this->msg; } private: std::string msg; -- GitLab