Debian Codegraph @

src/librssguard/exceptions/feedfetchexception.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.
2
3 #ifndef FEEDFETCHEXCEPTION_H
4 #define FEEDFETCHEXCEPTION_H
5
6 #include "exceptions/applicationexception.h"
7 #include "services/abstract/feed.h"
8
9 class RSSGUARD_DLLSPEC FeedFetchException : public ApplicationException {
10 public:
11 // "data" parameter should contain this, depending on "feed_status":
12 // - Feed::Status::NetworkError -> NetworkResult instance
13 // - other feed status values -> arbitrary data
14 explicit FeedFetchException(Feed::Status feed_status, const QString& message = {}, const QVariant& data = {});
15
16 Feed::Status feedStatus() const;
17 QVariant data() const;
18
19 private:
20 QVariant m_data;
21 Feed::Status m_feedStatus;
22 };
23
24 #endif // FEEDFETCHEXCEPTION_H