CARLA
Loading...
Searching...
No Matches
carla::rpc::ResponseError Class Reference

#include <Response.h>

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 29 of file Response.h.

Constructor & Destructor Documentation

◆ ResponseError() [1/2]

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

Referenced by TEST().

◆ ResponseError() [2/2]

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

Definition at line 34 of file Response.h.

References _what.

Member Function Documentation

◆ What()

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

Definition at line 37 of file Response.h.

References _what.

Referenced by TEST().

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 48 of file Response.h.

Referenced by ResponseError(), and What().


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