Unify custom exceptions

This commit is contained in:
Vladimir Golovnev (Glassez) 2021-05-05 16:41:30 +03:00
parent 89cedd411e
commit 9565b695ef
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
13 changed files with 43 additions and 57 deletions

View file

@ -28,12 +28,12 @@
#include "exceptions.h"
RuntimeError::RuntimeError(const QString &message)
: std::runtime_error {message.toUtf8().data()}
Exception::Exception(const QString &message) noexcept
: m_message {message}
{
}
QString RuntimeError::message() const
QString Exception::message() const noexcept
{
return what();
return m_message;
}