mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 05:31:25 -07:00
Unify custom exceptions
This commit is contained in:
parent
89cedd411e
commit
9565b695ef
13 changed files with 43 additions and 57 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue