LLDB mainline
lldb_private::transport::InvalidMessage Class Reference

An error to indicate that an incoming message could not be parsed as a valid protocol message. More...

#include <JSONTransport.h>

Inheritance diagram for lldb_private::transport::InvalidMessage:
[legend]

Public Member Functions

 InvalidMessage (std::string raw_message, std::string reason)
void log (llvm::raw_ostream &OS) const override
std::error_code convertToErrorCode () const override

Static Public Attributes

static char ID
static constexpr int kErrorCode = -32700

Private Attributes

std::string m_raw_message
std::string m_reason

Detailed Description

An error to indicate that an incoming message could not be parsed as a valid protocol message.

Definition at line 90 of file JSONTransport.h.

Constructor & Destructor Documentation

◆ InvalidMessage()

lldb_private::transport::InvalidMessage::InvalidMessage ( std::string raw_message,
std::string reason )
inlineexplicit

Definition at line 96 of file JSONTransport.h.

References m_raw_message, and m_reason.

Member Function Documentation

◆ convertToErrorCode()

std::error_code InvalidMessage::convertToErrorCode ( ) const
override

Definition at line 50 of file JSONTransport.cpp.

References kErrorCode.

◆ log()

void InvalidMessage::log ( llvm::raw_ostream & OS) const
override

Definition at line 46 of file JSONTransport.cpp.

References m_raw_message, m_reason, and lldb_private::OS.

Member Data Documentation

◆ ID

char InvalidMessage::ID
static

Definition at line 92 of file JSONTransport.h.

◆ kErrorCode

int lldb_private::transport::InvalidMessage::kErrorCode = -32700
staticconstexpr

Definition at line 94 of file JSONTransport.h.

Referenced by convertToErrorCode().

◆ m_raw_message

std::string lldb_private::transport::InvalidMessage::m_raw_message
private

Definition at line 103 of file JSONTransport.h.

Referenced by InvalidMessage(), and log().

◆ m_reason

std::string lldb_private::transport::InvalidMessage::m_reason
private

Definition at line 104 of file JSONTransport.h.

Referenced by InvalidMessage(), and log().


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