blob: f5498f9aaaea6f0ecae4c6e720affddfe10ea390 (
plain) (
blame)
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
28
29
|
#pragma once
#include <stdexcept>
namespace rawaccel {
class error : public std::runtime_error {
using std::runtime_error::runtime_error;
};
class invalid_argument : public error {
using error::error;
};
class io_error : public error {
using error::error;
};
class install_error : public io_error {
public:
install_error() : io_error("rawaccel is not installed") {}
};
class cooldown_error : public io_error {
public:
cooldown_error() : io_error("write is on cooldown") {}
};
}
|