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

@ -498,17 +498,6 @@ QBtCommandLineParameters parseCommandLine(const QStringList &args)
return result;
}
CommandLineParameterError::CommandLineParameterError(const QString &messageForUser)
: std::runtime_error(messageForUser.toLocal8Bit().data())
, m_messageForUser(messageForUser)
{
}
const QString &CommandLineParameterError::messageForUser() const
{
return m_messageForUser;
}
QString wrapText(const QString &text, int initialIndentation = USAGE_TEXT_COLUMN, int wrapAtColumn = WRAP_AT_COLUMN)
{
QStringList words = text.split(' ');