Itasca C++ Interface
|
Base exception class for all Itasca code. More...
#include <baseqexception.h>
Public Member Functions | |
BASE_EXPORT | Exception (const QString &s_, const QVariant &v1=QVariant(), const QVariant &v2=QVariant(), const QVariant &v3=QVariant(), const QVariant &v4=QVariant(), const QVariant &v5=QVariant(), const QVariant &v6=QVariant()) |
BASE_EXPORT | ~Exception () throw () |
Destructor. | |
virtual BASE_EXPORT const char * | what () const throw () |
Returns the contents of the error message as a const char. | |
BASE_EXPORT void | setMessage (const QString &s) |
Allows the message carried by the exception to be replaced with a new one. | |
Base exception class for all Itasca code.
By convention an exception thrown derived from std::exeption with message "quit" means shut down.
Exception::Exception | ( | const QString & | s_, |
const QVariant & | v1 = QVariant() , |
||
const QVariant & | v2 = QVariant() , |
||
const QVariant & | v3 = QVariant() , |
||
const QVariant & | v4 = QVariant() , |
||
const QVariant & | v5 = QVariant() , |
||
const QVariant & | v6 = QVariant() |
||
) |
Constructor, uses the build() format to create the string for convenience. Currently, the total message cannot be more than 1024 characters.