All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
dx::DXAPIError Class Reference

#include <exceptions.h>

Inheritance diagram for dx::DXAPIError:
dx::DXError

Public Member Functions

 DXAPIError (std::string msg, std::string type, int resp_code)
 
virtual const char * what () const throw ()
 
- Public Member Functions inherited from dx::DXError
 DXError (const std::string &msg, const std::string &type=DXErrorTypes::DEFAULT_ERROR)
 

Public Attributes

int resp_code
 HTTP status code returned by the apiserver.
 
- Public Attributes inherited from dx::DXError
std::string msg
 The actual error message.
 
std::string type
 Type of the error message (can be a free-form string, but usually one of the static members from DXError class)
 
std::string error_msg
 

Detailed Description

Represents errors returned by the API server.

This exception is thrown when a request made to the API server results in an HTTP response code other than 200.


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