#include <parser_exception.h>
Definition at line 31 of file parser_exception.h.
◆ ParserException() [1/4]
CVC4::parser::ParserException::ParserException |
( |
| ) |
|
throw | ( | ) | | | |
|
inline |
◆ ParserException() [2/4]
CVC4::parser::ParserException::ParserException |
( |
const std::string & | msg | ) |
|
throw | ( | ) | | | |
|
inline |
◆ ParserException() [3/4]
CVC4::parser::ParserException::ParserException |
( |
const char * | msg | ) |
|
throw | ( | ) | | | |
|
inline |
◆ ParserException() [4/4]
CVC4::parser::ParserException::ParserException |
( |
const std::string & | msg, |
|
|
const std::string & | filename, |
|
|
unsigned long | line, |
|
|
unsigned long | column ) |
throw | ( | ) | | | |
|
inline |
◆ ~ParserException()
virtual CVC4::parser::ParserException::~ParserException |
( |
| ) |
|
throw | ( | ) | | | |
|
inlinevirtual |
◆ getColumn()
int CVC4::parser::ParserException::getColumn |
( |
| ) |
const |
throw | ( | ) | | | |
|
inline |
◆ getFilename()
std::string CVC4::parser::ParserException::getFilename |
( |
| ) |
const |
throw | ( | ) | | | |
|
inline |
◆ getLine()
int CVC4::parser::ParserException::getLine |
( |
| ) |
const |
throw | ( | ) | | | |
|
inline |
◆ getMessage()
std::string CVC4::Exception::getMessage |
( |
| ) |
const |
throw | ( | ) | | | |
|
inlineinherited |
◆ setMessage()
void CVC4::Exception::setMessage |
( |
const std::string & | msg | ) |
|
throw | ( | ) | | | |
|
inlineinherited |
◆ toStream()
virtual void CVC4::parser::ParserException::toStream |
( |
std::ostream & | os | ) |
const |
throw | ( | ) | | | |
|
inlinevirtual |
Printing: feel free to redefine toStream().
When overridden in a derived class, it's recommended that this method print the type of exception before the actual message.
Reimplemented from CVC4::Exception.
Definition at line 65 of file parser_exception.h.
◆ toString()
std::string CVC4::Exception::toString |
( |
| ) |
const |
throw | ( | ) | | | |
|
inlineinherited |
Get this exception as a string.
Note that cout << ex.toString(); is subtly different from cout << ex; which is equivalent to ex.toStream(cout); That is because with the latter two, the output language (and other preferences) for exprs on the stream is respected. In toString(), there is no stream, so the parameters are default and you'll get exprs and types printed using the AST language.
Definition at line 64 of file exception.h.
◆ what()
virtual const char * CVC4::Exception::what |
( |
| ) |
const |
throw | ( | ) | | | |
|
inlinevirtualinherited |
◆ d_column
unsigned long CVC4::parser::ParserException::d_column |
|
protected |
◆ d_filename
std::string CVC4::parser::ParserException::d_filename |
|
protected |
◆ d_line
unsigned long CVC4::parser::ParserException::d_line |
|
protected |
◆ d_msg
std::string CVC4::Exception::d_msg |
|
protectedinherited |
The documentation for this class was generated from the following file: