| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #include "exceptions/networkexception.h" |
| 4 | |
| 5 | #include "network-web/networkfactory.h" |
| 6 | |
| 7 | NetworkException::NetworkException(QNetworkReply::NetworkError error, const QString& message) |
| 8 | : ApplicationException(message.simplified().isEmpty() ? NetworkFactory::networkErrorText(error) : message), |
| 9 | m_networkError(error) {} |
| 10 | |
| 11 | QNetworkReply::NetworkError NetworkException::networkError() const { |
| 12 | return m_networkError; |
| 13 | } |