--- parser3/src/include/pa_exception.h 2002/01/23 10:38:17 1.29 +++ parser3/src/include/pa_exception.h 2002/03/27 15:30:35 1.33 @@ -1,10 +1,10 @@ /** @file Parser: exception decls. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_exception.h,v 1.29 2002/01/23 10:38:17 paf Exp $ + $Id: pa_exception.h,v 1.33 2002/03/27 15:30:35 paf Exp $ */ #ifndef PA_EXCEPTION_H @@ -17,13 +17,12 @@ class Pool; // defines -/// Just simple longjump mechanizm dressed in class clothes. use Temp_exception class Exception { public: Exception(); Exception( - const String *atype, const String *acode, + const char *atype, const String *aproblem_source, const char *comment_fmt, ...); Exception(const Exception& src); @@ -32,15 +31,12 @@ public: #ifdef XML Exception( - const String *atype, const String *acode, const String *aproblem_source, GdomeException& exc); #endif /// extracts exception type - const String *type() const { return ftype; } - /// extracts exception code - const String *code() const { return fcode; } + const char *type() const { return ftype; } /// extracts exception problem_source const String *problem_source() const { return fproblem_source; } /// extracts exception comment @@ -48,9 +44,9 @@ public: private: - const String *ftype, *fcode, *fproblem_source; - bool owns_comment; - char *fcomment; + const char *ftype; + const String *fproblem_source; + bool owns_comment; char *fcomment; };