summaryrefslogtreecommitdiff
path: root/src/p18/exceptions.h
blob: 9b79082543c511e623083d955b60959bcbd44aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: BSD-3-Clause

#ifndef INFINISOLAR_TOOLS_P18_EXCEPTIONS_H
#define INFINISOLAR_TOOLS_P18_EXCEPTIONS_H

#include <stdexcept>

namespace p18 {

class InvalidResponseError : public std::runtime_error {
public:
    using std::runtime_error::runtime_error;
};

class ParseError : public InvalidResponseError {
public:
    using InvalidResponseError::InvalidResponseError;
};

}

#endif //INFINISOLAR_TOOLS_P18_EXCEPTIONS_H