# include/net/error.hpp
# Namespaces
| Name |
|---|
| net |
# Classes
| Name | |
|---|---|
| class | net::key_exist_error |
| class | net::key_unfound_error |
# Source code
#ifndef NET_ERROR_HPP
#define NET_ERROR_HPP
#include <stdexcept>
namespace net {
class key_exist_error : public std::logic_error {
public:
explicit key_exist_error(const std::string & mess) : std::logic_error(mess) {}
};
class key_unfound_error : public std::logic_error {
public:
explicit key_unfound_error(const std::string & mess) : std::logic_error(mess) {}
};
} // namespace net
#endif
Updated on 15 June 2022 at 16:04:19 CST