Nakama C++ Client SDK 2.5.1
Client for Nakama Server
NRtError Struct Reference

A logical error which may occur on the server. More...

#include <NRtError.h>

Public Member Functions

 NRtError ()
 
 NRtError (RtErrorCode code, const std::string &message)
 
 NRtError (RtErrorCode code, std::string &&message)
 

Public Attributes

RtErrorCode code = RtErrorCode::UNKNOWN
 The error code. More...
 
std::string message
 A message in English to help developers debug the response. More...
 
NStringMap context
 Additional error details which may be different for each response. More...
 

Detailed Description

A logical error which may occur on the server.

Constructor & Destructor Documentation

◆ NRtError() [1/3]

NRtError::NRtError ( )
inline

◆ NRtError() [2/3]

NRtError::NRtError ( RtErrorCode  code,
const std::string &  message 
)
inline

◆ NRtError() [3/3]

NRtError::NRtError ( RtErrorCode  code,
std::string &&  message 
)
inline

Member Data Documentation

◆ code

The error code.

◆ context

NStringMap NRtError::context

Additional error details which may be different for each response.

◆ message

std::string NRtError::message

A message in English to help developers debug the response.


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