Operator
C++ library for plugging into matrix.org
All Classes Namespaces Files Functions Typedefs Pages
Public Member Functions | Static Public Attributes | List of all members
Operator::Error::_MatrixErr< c > Class Template Reference
Inheritance diagram for Operator::Error::_MatrixErr< c >:
Inheritance graph
[legend]
Collaboration diagram for Operator::Error::_MatrixErr< c >:
Collaboration graph
[legend]

Public Member Functions

 _MatrixErr (unsigned short _status_code, std::string _error, std::map< std::string, nlohmann::json > &_other_data)
 
const std::string & getErrorCode () const
 
- Public Member Functions inherited from Operator::Error::MatrixError
const std::string & getError () const
 
unsigned short getStatusCode () const
 
const std::map< std::string, nlohmann::json > & getData () const
 
std::string to_string () const
 

Static Public Attributes

static const std::string ERROR_CODE
 
- Static Public Attributes inherited from Operator::Error::MatrixError
static const char M_FORBIDDEN []
 
static const char M_UNKNOWN_TOKEN []
 
static const char M_BAD_JSON []
 
static const char M_NOT_JSON []
 
static const char M_NOT_FOUND []
 
static const char M_LIMIT_EXCEEDED []
 
static const char M_USER_IN_USE []
 
static const char M_INVALID_USERNAME []
 
static const char M_ROOM_IN_USE []
 
static const char M_BAD_PAGINATION []
 
static const char M_THREEPID_IN_USE []
 
static const char M_THREEPID_NOT_FOUND []
 
static const char M_SERVER_NOT_TRUSTED []
 
static const char M_WEAK_PASSWORD []
 
static const char M_UNKNOWN []
 
static const char M_EXCLUSIVE []
 
static const char M_MISSING_PARAM []
 

Additional Inherited Members

- Public Types inherited from Operator::Error::MatrixError
typedef std::function< MatrixError *(unsigned short, const std::string &, const std::string &, std::map< std::string, nlohmann::json > &)> error_builder_t
 
- Static Public Member Functions inherited from Operator::Error::MatrixError
static ErrornewError (unsigned short status_code, const nlohmann::json &data) throw ()
 
static void registerErrorClass (const std::string &error_code, error_builder_t)
 
template<typename T >
static MatrixError_new_helper (unsigned short _status_code, const std::string &, const std::string &_error, std::map< std::string, nlohmann::json > &_other_data)
 
- Protected Member Functions inherited from Operator::Error::MatrixError
 MatrixError (unsigned short _status_code, const std::string &_error, std::map< std::string, nlohmann::json > &_other_data)
 

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