LLDB mainline
lldb_private::transport::MethodNotFound Class Reference

An error to indicate that no handler was registered for a given method. More...

#include <JSONTransport.h>

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

Public Member Functions

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

Static Public Attributes

static char ID
static constexpr int kErrorCode = -32601

Private Attributes

std::string m_method

Detailed Description

An error to indicate that no handler was registered for a given method.

Definition at line 87 of file JSONTransport.h.

Constructor & Destructor Documentation

◆ MethodNotFound()

lldb_private::transport::MethodNotFound::MethodNotFound ( std::string method)
inlineexplicit

Definition at line 93 of file JSONTransport.h.

References m_method.

Member Function Documentation

◆ convertToErrorCode()

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

Definition at line 49 of file JSONTransport.cpp.

References kErrorCode.

◆ log()

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

Definition at line 45 of file JSONTransport.cpp.

References m_method, and lldb_private::OS.

Member Data Documentation

◆ ID

char MethodNotFound::ID
static

Definition at line 89 of file JSONTransport.h.

◆ kErrorCode

int lldb_private::transport::MethodNotFound::kErrorCode = -32601
staticconstexpr

Definition at line 91 of file JSONTransport.h.

Referenced by convertToErrorCode().

◆ m_method

std::string lldb_private::transport::MethodNotFound::m_method
private

Definition at line 99 of file JSONTransport.h.

Referenced by log(), and MethodNotFound().


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