mirror of
https://github.com/polybar/polybar.git
synced 2025-11-06 22:34:39 -05:00
refactor: Move all event handling to the controller
This commit is contained in:
parent
8ed4de1dda
commit
a89c4ef2dd
47 changed files with 1146 additions and 1436 deletions
|
|
@ -14,6 +14,7 @@ using std::runtime_error;
|
|||
class application_error : public runtime_error {
|
||||
public:
|
||||
explicit application_error(const string& message, int code = 0) : runtime_error(message), code(code) {}
|
||||
virtual ~application_error() {}
|
||||
int code{0};
|
||||
};
|
||||
|
||||
|
|
@ -22,6 +23,7 @@ class system_error : public application_error {
|
|||
explicit system_error() : application_error(strerror(errno), errno) {}
|
||||
explicit system_error(const string& message)
|
||||
: application_error(message + " (reason: " + strerror(errno) + ")", errno) {}
|
||||
virtual ~system_error() {}
|
||||
};
|
||||
|
||||
#define DEFINE_CHILD_ERROR(error, parent) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue