--- parser3/src/include/pa_exception.h 2003/11/06 08:22:48 1.40 +++ parser3/src/include/pa_exception.h 2004/07/30 10:02:31 1.44 @@ -1,23 +1,19 @@ /** @file Parser: exception decls. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2004 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/11/06 08:22:48 $"; +static const char * const IDENT_EXCEPTION_H="$Date: 2004/07/30 10:02:31 $"; // includes #include "pa_memory.h" -#ifdef XML -# include "gdome.h" -#endif - // forwards class String; @@ -33,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)