25 err <<
"ERROR: " << errorMsg;
31 err <<
"INTERNAL ERROR: " << errorMsg <<
'\n';
36(
const string& errorMsg,
const char* file,
unsigned int lineNumber) {
38 err << errorMsg <<
'\n'
39 <<
"The internal error occurred in file " << file
40 <<
" on line " << lineNumber <<
'.';
46 err <<
"SYNTAX ERROR (";
49 err <<
"format " << scanner.
getFormat() <<
", ";
This is the base of the Frobby exception hierarchy for exceptions that can occur due to expected erro...
A replacement for stringstream.
This exception signals that a bug in Frobby has been detected.
This class offers an input interface which is more convenient and for some purposes more efficient th...
unsigned int getLineNumber() const
Returns the number of newlines seen.
const string & getFormat() const
void reportInternalError(const string &errorMsg)
void reportSyntaxError(const Scanner &scanner, const string &errorMsg)
void reportError(const string &errorMsg)
This header file includes common definitions and is included as the first line of code in every imple...