Class Error
Class Documentation
-
class Error
Public Types
-
enum ErrorCode
Values:
-
enumerator OK
-
enumerator GENERIC_ERROR
-
enumerator CONNECTION_CLOSED
-
enumerator UNKNOWN_SERVER
-
enumerator PROTOCOL_ERROR
-
enumerator STOPPED_BY_USER
Public Functions
-
inline Error(ErrorCode error_code, const std::string &message)
-
inline Error(ErrorCode error_code)
-
inline std::string GetDescription() const
-
inline std::string ToString() const
-
inline const std::string &GetMessage() const
-
inline operator bool() const
-
inline bool operator==(const Error &other) const
-
inline bool operator==(const ErrorCode other) const
-
inline bool operator!=(const Error &other) const
-
inline bool operator!=(const ErrorCode other) const
-
inline Error &operator=(ErrorCode error_code)