Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | List of all members
Exception Class Reference

Base exception class for all Itasca code. More...

#include <baseqexception.h>

Inheritance diagram for Exception:
InterruptException QuitException

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.
 

Detailed Description

Base exception class for all Itasca code.

By convention an exception thrown derived from std::exeption with message "quit" means shut down.

Constructor & Destructor Documentation

◆ Exception()

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.


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