diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-26 23:08:01 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-26 23:08:01 +0200 |
| commit | 16d50c8309bad5547bd07a3a6e78b404d490d93d (patch) | |
| tree | 31885fe771d5da21dddb7e1aa7e103787753ae3c /src/lib/exceptions.h | |
| parent | 69da43180e638518ed47424f2eba20cd25f2e093 (diff) | |
Better error handling with Linux privilege escalator.
Diffstat (limited to 'src/lib/exceptions.h')
| -rw-r--r-- | src/lib/exceptions.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 98534bb32..05cda9659 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -369,4 +369,14 @@ private: std::string _message; int _number; }; + + +class PrivilegeError : public std::runtime_error +{ +public: + explicit PrivilegeError (std::string s) + : std::runtime_error (s) + {} +}; + #endif |
