A simple container for both error message and error code.
More...
#include <Error.hpp>
A simple container for both error message and error code.
◆ CassandraError()
data::cassandra::CassandraError::CassandraError |
( |
std::string | message, |
|
|
uint32_t | code ) |
|
inline |
Construct a new CassandraError object.
- Parameters
-
message | The error message |
code | The error code |
◆ code()
uint32_t data::cassandra::CassandraError::code |
( |
| ) |
const |
|
inline |
◆ 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: