clang-tools 20.0.0git
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
clang::clangd::LSPError Class Reference

#include <Protocol.h>

Inheritance diagram for clang::clangd::LSPError:
Inheritance graph
[legend]

Public Member Functions

 LSPError (std::string Message, ErrorCode Code)
 
void log (llvm::raw_ostream &OS) const override
 
std::error_code convertToErrorCode () const override
 

Public Attributes

std::string Message
 
ErrorCode Code
 

Static Public Attributes

static char ID
 

Detailed Description

Definition at line 63 of file Protocol.h.

Constructor & Destructor Documentation

◆ LSPError()

clang::clangd::LSPError::LSPError ( std::string  Message,
ErrorCode  Code 
)
inline

Definition at line 69 of file Protocol.h.

Member Function Documentation

◆ convertToErrorCode()

std::error_code clang::clangd::LSPError::convertToErrorCode ( ) const
inlineoverride

Definition at line 75 of file Protocol.h.

◆ log()

void clang::clangd::LSPError::log ( llvm::raw_ostream &  OS) const
inlineoverride

Definition at line 72 of file Protocol.h.

References Code, Message, and OS.

Member Data Documentation

◆ Code

ErrorCode clang::clangd::LSPError::Code

Definition at line 66 of file Protocol.h.

Referenced by log().

◆ ID

char clang::clangd::LSPError::ID
static

Definition at line 67 of file Protocol.h.

◆ Message

std::string clang::clangd::LSPError::Message

Definition at line 65 of file Protocol.h.

Referenced by log().


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