| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef PROCESSEXCEPTION_H |
| 4 | #define PROCESSEXCEPTION_H |
| 5 | |
| 6 | #include "exceptions/applicationexception.h" |
| 7 | |
| 8 | #include <QProcess> |
| 9 | |
| 10 | class RSSGUARD_DLLSPEC ProcessException : public ApplicationException { |
| 11 | public: |
| 12 | ProcessException(int exit_code, |
| 13 | QProcess::ExitStatus exit_status, |
| 14 | QProcess::ProcessError error, |
| 15 | const QString& message = QString()); |
| 16 | |
| 17 | QProcess::ExitStatus exitStatus() const; |
| 18 | int exitCode() const; |
| 19 | QProcess::ProcessError error() const; |
| 20 | |
| 21 | private: |
| 22 | QProcess::ProcessError m_error; |
| 23 | QProcess::ExitStatus m_exitStatus; |
| 24 | int m_exitCode; |
| 25 | }; |
| 26 | |
| 27 | #endif // PROCESSEXCEPTION_H |