message_length;
80CassError rc = cass_future_error_code(future);
81cass_future_error_message(future, &message, &message_length);
82 string msg(message, message_length);
85 result.SetErrorCode(error_code);
112 case eFatal:
return "eFatal";
114 case eMemory:
return "eMemory";
120 NCBI_STD_DEPRECATED(
"Deprecated and will be deleted after 06/01/2024. Use CException::GetMsg()")
126 NCBI_STD_DEPRECATED(
"Deprecated and will be deleted after 06/01/2024. Use CException::GetMsg()")
132 NCBI_STD_DEPRECATED(
"Deprecated and will be deleted after 06/01/2024. Use CException::GetMsg()")
135 return "Failed to perform query in "+ to_string(
m_OpTimeMs) +
"ms, timed out";
142 const string& message,
163 #define RAISE_CASS_ERROR(errc, dberr, comm) \ 165 string macro_msg = comm; \ 166 string macro_c = NStr::NumericToString(static_cast<int>(errc), 0, 16); \ 167 macro_msg.append(" Cassandra error - (code: "+ macro_c); \
168macro_msg.append(string(", description: '") + \
169cass_error_desc(errc) + "')"); \
170NCBI_THROW(CCassandraException, dberr, macro_msg.c_str()); \
173 #define RAISE_DB_ERROR(errc, comm) \ 174 NCBI_THROW(CCassandraException, errc, comm); \#define BEGIN_IDBLOB_SCOPE
int64_t GetOpTime() const
void SetOpTime(int64_t optimeMS)
NCBI_EXCEPTION_DEFAULT(CCassandraException, CException)
string TimeoutMsg() const
@ eQueryFailedRestartable
void x_Assign(const CException &src) override
Helper method for copying exception data.
const char * GetErrCodeString(void) const override
Get error code interpreted as text.
void x_Init(const CDiagCompileInfo &info, const string &message, const CException *prev_exception, EDiagSev severity) override
Helper method for initializing exception data.
void SetErrorCode(EErrCode error_code)
static CCassandraException s_ProduceException(CassFuture *future, CCassandraException::EErrCode error_code)
Incapsulate compile time information such as __FILE__, __LINE__, NCBI_MODULE, current function.
The NCBI C++ standard methods for dealing with std::string.
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
EDiagSev
Severity level for the posted diagnostics.
TErrCode GetErrCode(void) const
Get error code.
virtual void x_Init(const CDiagCompileInfo &info, const string &message, const CException *prev_exception, EDiagSev severity)
Helper method for initializing exception data.
virtual void x_InitErrCode(CException::EErrCode err_code)
Helper method for initializing error code.
virtual void x_Assign(const CException &src)
Helper method for copying exception data.
EErrCode
Error types that an application can generate.
#define NCBI_EXCEPTION(exception_class, err_code, message)
Generic macro to make an exception, given the exception class, error code and message string.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
void Info(CExceptionArgs_Base &args)
#define NCBI_STD_DEPRECATED(message)
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
Defines NCBI C++ exception handling.
NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4