Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
data::cassandra::CassandraError Class Reference

A simple container for both error message and error code. More...

#include <Error.hpp>

Public Member Functions

 CassandraError (std::string message, uint32_t code)
 Construct a new CassandraError object.
 
std::string message () const
 
uint32_t code () const
 
bool isTimeout () const
 
bool isInvalidQuery () const
 

Detailed Description

A simple container for both error message and error code.

Constructor & Destructor Documentation

◆ CassandraError()

data::cassandra::CassandraError::CassandraError ( std::string message,
uint32_t code )
inline

Construct a new CassandraError object.

Parameters
messageThe error message
codeThe error code

Member Function Documentation

◆ code()

uint32_t data::cassandra::CassandraError::code ( ) const
inline
Returns
The error code

◆ isInvalidQuery()

bool data::cassandra::CassandraError::isInvalidQuery ( ) const
inline
Returns
true if the wrapped error is an invalid query; false otherwise

◆ isTimeout()

bool data::cassandra::CassandraError::isTimeout ( ) const
inline
Returns
true if the wrapped error is considered a timeout; false otherwise

◆ message()

std::string data::cassandra::CassandraError::message ( ) const
inline
Returns
The final error message as a std::string

The documentation for this class was generated from the following file: