| Server IP : 170.10.162.208 / Your IP : 216.73.216.181 Web Server : LiteSpeed System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64 User : deltahospital ( 1806) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/deltahospital/test.delta-hospital.com/ |
Upload File : |
usr/include/libmemcached-1.0/exception.hpp 0000644 00000002216 15051120700 0014370 0 ustar 00 /*
* 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 */