--- parser3/src/include/pa_exception.h 2003/11/06 08:48:59 1.41 +++ parser3/src/include/pa_exception.h 2007/04/23 10:17:36 1.46 @@ -1,14 +1,16 @@ /** @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/11/06 08:48:59 $"; +static const char * const IDENT_EXCEPTION_H="$Date: 2007/04/23 10:17:36 $"; + +static const char* const PARSER_RUNTIME = "parser.runtime"; // includes @@ -29,6 +31,7 @@ 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); /// extracts exception type