CppWAMP
C++11 client library for the WAMP protocol
|
Contains facilities for reporting and describing errors. More...
#include <sstream>
#include <stdexcept>
#include <string>
#include <system_error>
#include "api.hpp"
#include "config.hpp"
#include "internal/error.ipp"
Go to the source code of this file.
Classes | |
class | wamp::error::Failure |
General purpose runtime exception that wraps a std::error_code. More... | |
struct | wamp::error::Logic |
Exception thrown when a pre-condition is not met. More... | |
struct | wamp::error::BadType |
Base class for exceptions involving invalid Variant types. More... | |
struct | wamp::error::Access |
Exception type thrown when accessing a Variant as an invalid type. More... | |
struct | wamp::error::Conversion |
Exception type thrown when converting a Variant to an invalid type. More... | |
struct | wamp::error::Decode |
Exception type thrown when codec deserialization fails. More... | |
class | wamp::SessionCategory |
std::error_category used for reporting errors at the WAMP session layer. More... | |
class | wamp::DecodingCategory |
std::error_category used for reporting deserialization errors. More... | |
class | wamp::ProtocolCategory |
std::error_category used for reporting protocol errors related to invalid WAMP messages. More... | |
class | wamp::TransportCategory |
std::error_category used for reporting errors at the transport layer. More... | |
class | wamp::RawsockCategory |
std::error_category used for reporting errors specific to raw socket transports. More... | |
Namespaces | |
wamp | |
wamp::error | |
Macros | |
#define | CPPWAMP_LOGIC_ERROR(msg) error::Logic::raise(__FILE__, __LINE__, (msg)); |
Throws an error::Logic exception having the given message string. More... | |
#define | CPPWAMP_LOGIC_CHECK(cond, msg) {error::Logic::check((cond), __FILE__, __LINE__, (msg));} |
Conditionally throws an error::Logic exception having the given message string. More... | |
Contains facilities for reporting and describing errors.
#define CPPWAMP_LOGIC_ERROR | ( | msg | ) | error::Logic::raise(__FILE__, __LINE__, (msg)); |
Throws an error::Logic exception having the given message string.
msg | A string describing the cause of the exception. |
#define CPPWAMP_LOGIC_CHECK | ( | cond, | |
msg | |||
) | {error::Logic::check((cond), __FILE__, __LINE__, (msg));} |
Conditionally throws an error::Logic exception having the given message string.
cond | A boolean expression that, if true , will cause an exception to be thrown. |
msg | A string describing the cause of the exception. |