File:  [parser3project] / parser3 / src / main / pa_exception.C
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Thu Feb 22 10:43:45 2001 UTC (25 years, 4 months ago) by paf
Branches: MAIN
CVS tags: HEAD
removed exception from request

/*
  $Id: pa_exception.C,v 1.4 2001/02/22 10:43:45 paf Exp $
*/

#include <stdio.h>
#include <stdlib.h>

#include "pa_exception.h"
#include "pa_common.h"

void Exception::_throw(const String *atype, const String *acode,
					  const String *aproblem_source, 
					  const char *comment_fmt, ...) const {
	ftype=atype;
	fcode=acode;
	fproblem_source=aproblem_source;

	if(comment_fmt) {
		va_list args;
		va_start(args, comment_fmt);
		vsnprintf(fcomment, MAX_STRING, comment_fmt, args);
		va_end(args);
	} else 
		fcomment[0]=0;

	longjmp(mark, 1);
}

E-mail: