LLDB mainline
lldb_private::transport::InvalidParams Class Reference

An error to indicate that the parameters of a Req, Resp or Evt could not be deserialized. More...

#include <JSONTransport.h>

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

Public Member Functions

 InvalidParams (std::string method, std::string context)
void log (llvm::raw_ostream &OS) const override
std::error_code convertToErrorCode () const override

Static Public Attributes

static char ID

Private Attributes

std::string m_method
 The JSONRPC remote method call.
std::string m_context
 Additional context from the parsing failure, e.g.

Detailed Description

An error to indicate that the parameters of a Req, Resp or Evt could not be deserialized.

Definition at line 67 of file JSONTransport.h.

Constructor & Destructor Documentation

◆ InvalidParams()

lldb_private::transport::InvalidParams::InvalidParams ( std::string method,
std::string context )
inlineexplicit

Definition at line 71 of file JSONTransport.h.

References m_context, and m_method.

Member Function Documentation

◆ convertToErrorCode()

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

Definition at line 39 of file JSONTransport.cpp.

◆ log()

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

Definition at line 35 of file JSONTransport.cpp.

References m_context, m_method, and lldb_private::OS.

Member Data Documentation

◆ ID

char InvalidParams::ID
static

Definition at line 69 of file JSONTransport.h.

◆ m_context

std::string lldb_private::transport::InvalidParams::m_context
private

Additional context from the parsing failure, e.g.

"missing value at (root)[1].str".

Definition at line 83 of file JSONTransport.h.

Referenced by InvalidParams(), and log().

◆ m_method

std::string lldb_private::transport::InvalidParams::m_method
private

The JSONRPC remote method call.

Definition at line 79 of file JSONTransport.h.

Referenced by InvalidParams(), and log().


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