diff options
Diffstat (limited to 'src/protocol/exceptions.h')
-rw-r--r-- | src/protocol/exceptions.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/protocol/exceptions.h b/src/protocol/exceptions.h new file mode 100644 index 0000000..4febe28 --- /dev/null +++ b/src/protocol/exceptions.h @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#ifndef INVERTER_TOOLS_PROTOCOL_EXCEPTIONS_H +#define INVERTER_TOOLS_PROTOCOL_EXCEPTIONS_H + +#include <stdexcept> + +namespace protocol { + +class InvalidResponseError : public std::runtime_error { +public: + using std::runtime_error::runtime_error; +}; + +class ParseError : public InvalidResponseError { +public: + using InvalidResponseError::InvalidResponseError; +}; + +} + +#endif //INVERTER_TOOLS_PROTOCOL_EXCEPTIONS_H |