Annotation of parser3/src/include/pa_exception.h, revision 1.32

1.10      paf         1: /** @file
1.11      paf         2:        Parser: exception decls.
                      3: 
1.30      paf         4:        Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)
1.31      paf         5:        Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.6       paf         6: 
1.32    ! paf         7:        $Id: pa_exception.h,v 1.31 2002/02/08 08:30:13 paf Exp $
1.1       paf         8: */
                      9: 
                     10: #ifndef PA_EXCEPTION_H
                     11: #define PA_EXCEPTION_H
                     12: 
                     13: #include "pa_types.h"
                     14: #include "pa_string.h"
1.14      parser     15: 
                     16: class Pool;
                     17: 
1.22      paf        18: // defines
                     19: 
1.1       paf        20: class Exception {
                     21: public:
                     22: 
1.19      paf        23:        Exception();
1.15      parser     24:        Exception(
1.1       paf        25:                const String *atype, const String *acode,
                     26:                const String *aproblem_source, 
1.15      parser     27:                const char *comment_fmt, ...);
1.22      paf        28:        Exception(const Exception& src);
                     29:        Exception& operator =(const Exception& src);
                     30:        ~Exception();
1.14      parser     31: 
                     32: #ifdef XML
1.28      paf        33:        Exception(
                     34:                const String *atype, const String *acode,
                     35:                const String *aproblem_source, 
                     36:                GdomeException& exc);
1.14      parser     37: #endif
1.1       paf        38: 
1.10      paf        39:        /// extracts exception type
1.5       paf        40:        const String *type() const { return ftype; }
1.10      paf        41:        /// extracts exception code
1.5       paf        42:        const String *code() const { return fcode; }
1.10      paf        43:        /// extracts exception problem_source
1.5       paf        44:        const String *problem_source() const { return fproblem_source; }
1.10      paf        45:        /// extracts exception comment
1.22      paf        46:        const char *comment() const { return fcomment; }
1.1       paf        47: 
                     48: private:
                     49: 
1.15      parser     50:        const String *ftype, *fcode, *fproblem_source;
1.22      paf        51:        bool owns_comment;
                     52:        char *fcomment;
1.15      parser     53: 
1.1       paf        54: };
                     55: 
                     56: #endif

E-mail: