--- parser3/src/include/pa_exception.h 2003/07/24 11:31:21 1.39 +++ parser3/src/include/pa_exception.h 2005/08/09 08:14:49 1.45 @@ -1,14 +1,14 @@ /** @file Parser: exception decls. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_EXCEPTION_H #define PA_EXCEPTION_H -static const char* IDENT_EXCEPTION_H="$Date: 2003/07/24 11:31:21 $"; +static const char * const IDENT_EXCEPTION_H="$Date: 2005/08/09 08:14:49 $"; // includes @@ -29,14 +29,9 @@ public: const String* aproblem_source, const char* comment_fmt, ...); Exception(const Exception& src); + operator bool() { return ftype || fproblem_source || fcomment; } Exception& operator =(const Exception& src); -#ifdef XML - Exception( - const String* aproblem_source, - GdomeException& exc); -#endif - /// extracts exception type const char* type(bool can_be_empty=false) const { if(can_be_empty) @@ -55,7 +50,7 @@ public: return result?result:""; } -private: +protected: const char* ftype; const String* fproblem_source;