BaseException
Qualified name: mv::util::BaseException
-
class BaseException : public QException
Exception class for ManiVault.
Base class for exceptions in ManiVault.
- Author
Thomas Kroes
Subclassed by mv::AbstractProjectManager::ProjectDownloadException, mv::util::FileDownloader::Exception
Public Functions
-
BaseException(const QString &message, const QIcon &icon = QIcon())
Construct with
messageandicon.- Parameters:
message – Exception message
icon – Icon to display in message box (default is empty)
-
const char *what() const noexcept override
Get the exception message in UTF-8 format.
- Returns:
UTF-8 encoded exception message
-
void raise() const override
Raises an exception, required by QException for rethrowing.
-
BaseException *clone() const override
Clones an exception, required by QException for rethrowing.
-
QString getMessage() const
Get the exception message.
- Returns:
Exception message
-
QIcon getIcon() const
Get the icon to display in message box.
- Returns:
Exception icon