cvc4-1.4
CVC4::IllegalArgumentException Class Reference

#include <exception.h>

Inheritance diagram for CVC4::IllegalArgumentException:
CVC4::Exception

Public Member Functions

 IllegalArgumentException (const char *condStr, const char *argDesc, const char *function, const char *fmt,...)
 
 IllegalArgumentException (const char *condStr, const char *argDesc, const char *function)
 
void setMessage (const std::string &msg) throw ()
 
std::string getMessage () const throw ()
 
virtual const char * what () const throw ()
 
std::string toString () const throw ()
 Get this exception as a string. More...
 
virtual void toStream (std::ostream &os) const throw ()
 Printing: feel free to redefine toStream(). More...
 

Protected Member Functions

 IllegalArgumentException ()
 
void construct (const char *header, const char *extra, const char *function, const char *fmt,...)
 
void construct (const char *header, const char *extra, const char *function, const char *fmt, va_list args)
 
void construct (const char *header, const char *extra, const char *function)
 

Protected Attributes

std::string d_msg
 

Detailed Description

Definition at line 79 of file exception.h.

Constructor & Destructor Documentation

CVC4::IllegalArgumentException::IllegalArgumentException ( )
inlineprotected

Definition at line 81 of file exception.h.

CVC4::IllegalArgumentException::IllegalArgumentException ( const char *  condStr,
const char *  argDesc,
const char *  function,
const char *  fmt,
  ... 
)
inline

Definition at line 98 of file exception.h.

CVC4::IllegalArgumentException::IllegalArgumentException ( const char *  condStr,
const char *  argDesc,
const char *  function 
)
inline

Definition at line 112 of file exception.h.

Member Function Documentation

void CVC4::IllegalArgumentException::construct ( const char *  header,
const char *  extra,
const char *  function,
const char *  fmt,
  ... 
)
inlineprotected

Definition at line 83 of file exception.h.

void CVC4::IllegalArgumentException::construct ( const char *  header,
const char *  extra,
const char *  function,
const char *  fmt,
va_list  args 
)
protected
void CVC4::IllegalArgumentException::construct ( const char *  header,
const char *  extra,
const char *  function 
)
protected
std::string CVC4::Exception::getMessage ( ) const
throw (
)
inlineinherited

Definition at line 47 of file exception.h.

void CVC4::Exception::setMessage ( const std::string &  msg)
throw (
)
inlineinherited

Definition at line 46 of file exception.h.

virtual void CVC4::Exception::toStream ( std::ostream &  os) const
throw (
)
inlinevirtualinherited

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 in CVC4::TypeCheckingException, and CVC4::parser::ParserException.

Definition at line 75 of file exception.h.

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

Definition at line 50 of file exception.h.

Field Documentation

std::string CVC4::Exception::d_msg
protectedinherited

Definition at line 34 of file exception.h.


The documentation for this class was generated from the following file: