# HG changeset patch # User David Demelier # Date 1514904787 -3600 # Node ID 8c0942ee6e630324c8ec6e4f664419cca6959975 # Parent c6000e13ab02dcb31e26c87a6bb9f72c368a0b50 Irccd: do not use ranges for error codes diff -r c6000e13ab02 -r 8c0942ee6e63 libirccd/irccd/daemon/irccd.hpp --- a/libirccd/irccd/daemon/irccd.hpp Fri Dec 22 22:05:00 2017 +0100 +++ b/libirccd/irccd/daemon/irccd.hpp Tue Jan 02 15:53:07 2018 +0100 @@ -228,7 +228,7 @@ class irccd_error : public boost::system::system_error { public: /** - * \brief Irccd related errors (1..999) + * \brief Irccd related errors. */ enum error { //!< No error. diff -r c6000e13ab02 -r 8c0942ee6e63 libirccd/irccd/daemon/plugin.hpp --- a/libirccd/irccd/daemon/plugin.hpp Fri Dec 22 22:05:00 2017 +0100 +++ b/libirccd/irccd/daemon/plugin.hpp Tue Jan 02 15:53:07 2018 +0100 @@ -543,14 +543,14 @@ class plugin_error : public boost::system::system_error { public: /** - * \brief Server related errors (3000..3999) + * \brief Plugin related errors. */ enum error { //!< No error. no_error = 0, //!< The specified plugin is not found. - not_found = 2000, + not_found, //!< The plugin was unable to run the function. exec_error, diff -r c6000e13ab02 -r 8c0942ee6e63 libirccd/irccd/daemon/rule.hpp --- a/libirccd/irccd/daemon/rule.hpp Fri Dec 22 22:05:00 2017 +0100 +++ b/libirccd/irccd/daemon/rule.hpp Tue Jan 02 15:53:07 2018 +0100 @@ -230,14 +230,14 @@ class rule_error : public boost::system::system_error { public: /** - * \brief Rule related errors (4000..4999) + * \brief Rule related errors. */ enum error { //!< No error. no_error = 0, //!< Invalid action given. - invalid_action = 4000, + invalid_action, //!< Invalid rule index. invalid_index, diff -r c6000e13ab02 -r 8c0942ee6e63 libirccd/irccd/daemon/server.hpp --- a/libirccd/irccd/daemon/server.hpp Fri Dec 22 22:05:00 2017 +0100 +++ b/libirccd/irccd/daemon/server.hpp Tue Jan 02 15:53:07 2018 +0100 @@ -894,14 +894,14 @@ class server_error : public boost::system::system_error { public: /** - * \brief Server related errors (1000..1999) + * \brief Server related errors. */ enum error { //!< No error. no_error = 0, //!< The specified server was not found. - not_found = 1000, + not_found, //!< The specified identifier is invalid. invalid_identifier,