![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/PluginFramework/ctkPluginException.h>
Public Types | |
enum | Type { UNSPECIFIED , UNSUPPORTED_OPERATION , INVALID_OPERATION , MANIFEST_ERROR , RESOLVE_ERROR , ACTIVATOR_ERROR , SECURITY_ERROR , STATECHANGE_ERROR , DUPLICATE_PLUGIN_ERROR , READ_ERROR , START_TRANSIENT_ERROR } |
Public Member Functions | |
ctkPluginException * | clone () const |
ctkPluginException (const ctkPluginException &o) | |
ctkPluginException (const QString &msg, const ctkException &cause) | |
ctkPluginException (const QString &msg, const Type &type, const ctkException &cause) | |
ctkPluginException (const QString &msg, const Type &type=UNSPECIFIED) | |
Type | getType () const |
const char * | name () const throw () |
ctkPluginException & | operator= (const ctkPluginException &o) |
void | rethrow () const |
~ctkPluginException () throw () | |
![]() | |
ctkRuntimeException (const ctkRuntimeException &exc) | |
ctkRuntimeException (const QString &msg) | |
ctkRuntimeException (const QString &msg, const ctkException &exc) | |
ctkRuntimeException & | operator= (const ctkRuntimeException &exc) |
~ ctkRuntimeException () throw () | |
![]() | |
const ctkException * | cause () const throw () |
Gets the nested exception which caused this exception. More... | |
virtual const char * | className () const throw () |
Returns the class name for this exception. More... | |
ctkException (const ctkException &o) | |
Copy constructor. More... | |
ctkException (const QString &msg) | |
Create a new ctkException. More... | |
ctkException (const QString &msg, const ctkException &cause) | |
Create a new ctkException containing another exception as the cause. More... | |
QString | message () const throw () |
Returns the detail message string of this exception. More... | |
ctkException & | operator= (const ctkException &o) |
Assignment operator. More... | |
TraceManipulator | printStackTrace () const |
Returns an object suitable for printing this executable and its backtrace via qDebug(). More... | |
void | setCause (const ctkException &cause) |
Sets the cause for this exception. More... | |
virtual const char * | what () const throw () |
Returns a static string describing this exception. More... | |
~ctkException () throw () | |
![]() | |
ctkBackTrace (const ctkBackTrace &other) | |
ctkBackTrace (size_t framesNumber=DefaultStackSize) | |
Create a back trace. More... | |
void * | returnAddress (unsigned frameNumber) const |
Get the return address for a given stack frame. More... | |
QString | stackFrame (unsigned frameNumber) const |
Get a textual representation for a given stack frame. More... | |
size_t | stackSize () const |
Get the stack size. More... | |
QList< QString > | stackTrace () const |
Provides programmatic access to the stack trace information. More... | |
virtual | ~ctkBackTrace () throw () |
Additional Inherited Members | |
![]() | |
static size_t const | DefaultStackSize |
![]() | |
virtual QDebug | printStackTrace (QDebug dbg) const |
Print the stack trace of this exception using the given QDebug object. More... | |
A Plugin Framework exception used to indicate that a plugin lifecycle problem occurred.
A ctkPluginException
object is created by the Framework to denote an exception condition in the lifecycle of a plugin. ctkPluginException
s should not be created by plugin developers. An enum type is used to identify the exception type for future extendability.
This exception conforms to the general purpose exception chaining mechanism.
Definition at line 44 of file ctkPluginException.h.
Definition at line 48 of file ctkPluginException.h.
ctkPluginException::ctkPluginException | ( | const QString & | msg, |
const Type & | type = UNSPECIFIED |
||
) |
Creates a ctkPluginException
with the specified message and type.
msg | The associated message. |
type | The type for this exception. |
ctkPluginException::ctkPluginException | ( | const QString & | msg, |
const Type & | type, | ||
const ctkException & | cause | ||
) |
Creates a ctkPluginException
with the specified message, type and exception cause.
msg | The associated message. |
type | The type for this exception. |
cause | The cause of this exception. |
ctkPluginException::ctkPluginException | ( | const QString & | msg, |
const ctkException & | cause | ||
) |
Creates a ctkPluginException
with the specified message and exception cause.
msg | The associated message. |
cause | The cause of this exception. |
ctkPluginException::ctkPluginException | ( | const ctkPluginException & | o | ) |
ctkPluginException::~ctkPluginException | ( | ) | ||
throw | ( | |||
) |
|
virtual |
Reimplemented from ctkRuntimeException.
Type ctkPluginException::getType | ( | ) | const |
Returns the type for this exception or UNSPECIFIED
if the type was unspecified or unknown.
|
virtual |
Reimplemented from ctkRuntimeException.
ctkPluginException& ctkPluginException::operator= | ( | const ctkPluginException & | o | ) |
|
virtual |
Reimplemented from ctkRuntimeException.