aboutsummaryrefslogtreecommitdiff
path: root/src/voltronic/exceptions.h
blob: 6ae9c325263504cf5c99b65dbb95ea20dc1c7c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: BSD-3-Clause

#ifndef INVERTER_TOOLS_VOLTRONIC_EXCEPTIONS_H
#define INVERTER_TOOLS_VOLTRONIC_EXCEPTIONS_H

#include <stdexcept>

namespace voltronic {

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

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

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

}

#endif //INVERTER_TOOLS_VOLTRONIC_EXCEPTIONS_H