CARLA
Public Member Functions | Private Attributes | List of all members
carla::rpc::ResponseError Class Reference

#include <Response.h>

+ Collaboration diagram for carla::rpc::ResponseError:

Public Member Functions

 ResponseError ()=default
 
 ResponseError (std::string message)
 
const std::string & What () const
 

Private Attributes

std::string _what {"unknown error"}
 

Detailed Description

Definition at line 20 of file Response.h.

Constructor & Destructor Documentation

◆ ResponseError() [1/2]

carla::rpc::ResponseError::ResponseError ( )
default

◆ ResponseError() [2/2]

carla::rpc::ResponseError::ResponseError ( std::string  message)
inlineexplicit

Definition at line 25 of file Response.h.

Member Function Documentation

◆ What()

const std::string& carla::rpc::ResponseError::What ( ) const
inline

Definition at line 28 of file Response.h.

References _what.

Referenced by TEST().

+ Here is the caller graph for this function:

Member Data Documentation

◆ _what

std::string carla::rpc::ResponseError::_what {"unknown error"}
private
Todo:
Needs initialization, empty strings end up calling memcpy on a nullptr.

Possibly a bug in MsgPack but could also be our specialization for variants

Definition at line 39 of file Response.h.

Referenced by What().


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