changeset 627:8c0942ee6e63

Irccd: do not use ranges for error codes
author David Demelier <markand@malikania.fr>
date Tue, 02 Jan 2018 15:53:07 +0100
parents c6000e13ab02
children 27587ff92a64
files libirccd/irccd/daemon/irccd.hpp libirccd/irccd/daemon/plugin.hpp libirccd/irccd/daemon/rule.hpp libirccd/irccd/daemon/server.hpp
diffstat 4 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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,
--- 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,
--- 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,