8#ifndef COMMONEXCEPTION_H
9#define COMMONEXCEPTION_H
13#include <Kanoop/kanoopcommon.h>
29 void raise()
const override {
throw *
this; }
39 virtual QString
message()
const {
return _message; }
45 virtual qint32
code()
const {
return _code; }
CommonException * clone() const override
Create a heap-allocated copy of this exception.
CommonException(const QString &message, qint32 code=0)
Construct a CommonException with a message and optional error code.
void raise() const override
Re-throw this exception.
virtual qint32 code() const
Return the numeric error code.
virtual QString message() const
Return the error message.