irccd
3.0.3
|
Plugin error. More...
#include <plugin.hpp>
Public Types | |
enum | error { no_error = 0, invalid_identifier, not_found, exec_error, already_exists } |
Plugin related errors. More... | |
Public Member Functions | |
plugin_error (error code, std::string id, std::string message="") | |
auto | get_id () const noexcept -> const std::string & |
auto | get_message () const noexcept -> const std::string & |
auto | what () const noexcept -> const char *override |
Plugin error.
irccd::daemon::plugin_error::plugin_error | ( | error | code, |
std::string | id, | ||
std::string | message = "" |
||
) |
Constructor.
code | the error code |
id | the plugin id |
message | the optional message (e.g. error from plugin) |
|
noexcept |
Get the plugin identifier.
|
noexcept |
Get the additional message.
|
overridenoexcept |
Get message appropriate for use with logger.