Exception thrown in the case of type-checking errors.
More...
#include <expr.h>
Exception thrown in the case of type-checking errors.
Definition at line 150 of file expr.h.
CVC4::TypeCheckingException::TypeCheckingException |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inlineprotected |
CVC4::TypeCheckingException::TypeCheckingException |
( |
ExprManager * |
em, |
|
|
const TypeCheckingExceptionPrivate * |
exc |
|
) |
| |
throw | ( | |
| ) | | |
|
protected |
CVC4::TypeCheckingException::TypeCheckingException |
( |
const Expr & |
expr, |
|
|
std::string |
message |
|
) |
| |
throw | ( | |
| ) | | |
CVC4::TypeCheckingException::~TypeCheckingException |
( |
| ) |
|
throw | ( | |
| ) | | |
Expr CVC4::TypeCheckingException::getExpression |
( |
| ) |
const |
throw | ( | |
| ) | | |
Get the Expr that caused the type-checking to fail.
- Returns
- the expr
std::string CVC4::Exception::getMessage |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inlineinherited |
void CVC4::Exception::setMessage |
( |
const std::string & |
msg | ) |
|
throw | ( | |
| ) | | |
|
inlineinherited |
void CVC4::TypeCheckingException::toStream |
( |
std::ostream & |
out | ) |
const |
throw | ( | |
| ) | | |
|
virtual |
Returns the message corresponding to the type-checking failure.
We prefer toStream() to toString() because that keeps the expr-depth and expr-language settings present in the stream.
Reimplemented from CVC4::Exception.
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.
virtual const char* CVC4::Exception::what |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inlinevirtualinherited |
friend class smt::SmtEnginePrivate |
|
friend |
std::string CVC4::Exception::d_msg |
|
protectedinherited |
The documentation for this class was generated from the following file:
- builds/x86_64-redhat-linux-gnu/default-proof/src/expr/expr.h