* Special exception class used to signal the various stages * of the requires queue and its slots. Can be thrown both when * all work has been completed, if an error occurred, etc. */
| 60 | * all work has been completed, if an error occurred, etc. |
| 61 | */ |
| 62 | class RequiresQueueException : public DBus::Exception |
| 63 | { |
| 64 | public: |
| 65 | /** |
| 66 | * Used for errors which is not classified. |
| 67 | * |
| 68 | * @param err A string containing the error message |
| 69 | */ |
| 70 | RequiresQueueException(std::string err); |
| 71 | |
| 72 | /** |
| 73 | * Used for both state signalling and errors |
| 74 | * |
| 75 | * @param errname A string containing a "tag name" of the state/error |
| 76 | * @param errmsg A string describing the event |
| 77 | */ |
| 78 | RequiresQueueException(std::string errname, std::string errmsg); |
| 79 | |
| 80 | virtual ~RequiresQueueException() noexcept = default; |
| 81 | }; |
| 82 | |
| 83 | |
| 84 |
no outgoing calls
no test coverage detected