diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-09-10 19:32:25 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-09-10 19:32:26 +0200 |
commit | 0dc3b446daf823726121eeb7d7e4e355f499b565 (patch) | |
tree | 9a8ddab8540a24b1d56654fc0ca7977f62bb73f4 | |
parent | b1f435f0755a9abefc6aa77925148839635bd419 (diff) |
Let error type only contain the error message
Because the scope of the application is so small, we don't need much
more here.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | src/interface_read_error.cpp | 3 | ||||
-rw-r--r-- | src/interface_read_error.hpp | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/interface_read_error.cpp b/src/interface_read_error.cpp index cfe78ab..61c0e05 100644 --- a/src/interface_read_error.cpp +++ b/src/interface_read_error.cpp @@ -1,7 +1,6 @@ #include "interface_read_error.hpp" -interface_read_error::interface_read_error(int code, std::string msg, std::string function_name): - code(code), errmsg(msg), function_name(function_name) +interface_read_error::interface_read_error(std::string msg): errmsg(msg) { } diff --git a/src/interface_read_error.hpp b/src/interface_read_error.hpp index f872ca5..3c52178 100644 --- a/src/interface_read_error.hpp +++ b/src/interface_read_error.hpp @@ -5,12 +5,10 @@ class interface_read_error { public: - interface_read_error(int code, std::string msg, std::string function_name); + interface_read_error(std::string msg); private: - int code; std::string errmsg; - std::string function_name; }; #endif // GETIF_INTERFACE_READ_ERROR_H |