--- parser3/src/main/pa_exception.C 2001/01/30 13:07:31 1.2 +++ parser3/src/main/pa_exception.C 2001/02/22 10:43:45 1.4 @@ -1,5 +1,5 @@ /* - $Id: pa_exception.C,v 1.2 2001/01/30 13:07:31 paf Exp $ + $Id: pa_exception.C,v 1.4 2001/02/22 10:43:45 paf Exp $ */ #include @@ -8,22 +8,9 @@ #include "pa_exception.h" #include "pa_common.h" -Exception::Exception()/* : - ftype(0), - fcode(0), - fproblem_source(0), - fcomment("")*/ { -} - -void Exception::die(char *acomment) { - // FIX: log(LOG_ERROR, acomment) - fprintf(stderr, "die: %s\n", acomment); - exit(1); -} - -void Exception::raise(const String *atype, const String *acode, +void Exception::_throw(const String *atype, const String *acode, const String *aproblem_source, - const char *comment_fmt, ...) { + const char *comment_fmt, ...) const { ftype=atype; fcode=acode; fproblem_source=aproblem_source;