⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
include
/
libmemcached-1.0
/
View File Name :
exception.hpp
/* * Summary: Exceptions for the C++ interface * * Copy: See Copyright for the status of this software. * */ /** * @file * @brief Exception declarations */ #pragma once #include <stdexcept> #include <string> namespace memcache { class Exception : public std::runtime_error { public: Exception(const std::string& msg, int in_errno) : std::runtime_error(msg), _errno(in_errno) {} Exception(const char *msg, int in_errno) : std::runtime_error(std::string(msg)), _errno(in_errno) {} virtual ~Exception() throw() {} int getErrno() const { return _errno; } private: int _errno; }; class Warning : public Exception { public: Warning(const std::string& msg, int in_errno) : Exception(msg, in_errno) {} Warning(const char *msg, int in_errno) : Exception(msg, in_errno) {} }; class Error : public Exception { public: Error(const std::string& msg, int in_errno) : Exception(msg, in_errno) {} Error(const char *msg, int in_errno) : Exception(msg, in_errno) {} virtual ~Error() throw() {} }; } /* namespace libmemcached */