MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mbgl::Response::Error Class Reference

#include <response.hpp>

Public Types

enum class  Reason : uint8_t {
  Success = 1 , NotFound = 2 , Server = 3 , Connection = 4 ,
  RateLimit = 5 , Other = 6
}
 

Public Member Functions

 Error (Reason, std::string="", std::optional< Timestamp >=std::nullopt)
 

Public Attributes

enum mbgl::Response::Error::Reason reason = Reason::Other
 
std::string message
 
std::optional< TimestampretryAfter
 

Detailed Description

Definition at line 51 of file response.hpp.

Member Enumeration Documentation

◆ Reason

enum mbgl::Response::Error::Reason : uint8_t
strong
Enumerator
Success 
NotFound 
Server 
Connection 
RateLimit 
Other 

Definition at line 53 of file response.hpp.

Constructor & Destructor Documentation

◆ Error()

mbgl::Response::Error::Error ( Reason  ,
std::string  = "",
std::optional< Timestamp = std::nullopt 
)

Member Data Documentation

◆ message

std::string mbgl::Response::Error::message

Definition at line 64 of file response.hpp.

◆ reason

enum mbgl::Response::Error::Reason mbgl::Response::Error::reason = Reason::Other

◆ retryAfter

std::optional<Timestamp> mbgl::Response::Error::retryAfter

Definition at line 66 of file response.hpp.


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