LLVM: llvm::lsp::LSPError Class Reference (original) (raw)

This class models an LSP error as an llvm::Error. More...

#include "[llvm/Support/LSP/Protocol.h](Protocol%5F8h%5Fsource.html)"

Public Member Functions
LSPError (std::string message, ErrorCode code)
void log (raw_ostream &os) const override
Print an error message to an output stream.
std::error_code convertToErrorCode () const override
Convert this error to a std::error_code.
Public Member Functions inherited from llvm::ErrorInfo< LSPError >
const void * dynamicClassID () const override
bool isA (const void *const ClassID) const override
Public Member Functions inherited from llvm::ErrorInfoBase
virtual ~ErrorInfoBase ()=default
virtual std::string message () const
Return the error message as a string.
template
bool isA () const

This class models an LSP error as an llvm::Error.

Definition at line 80 of file Protocol.h.

llvm::lsp::LSPError::LSPError ( std::string message, ErrorCode code ) inline

convertToErrorCode()

std::error_code llvm::lsp::LSPError::convertToErrorCode ( ) const inlineoverridevirtual

log()

void llvm::lsp::LSPError::log ( raw_ostream & OS) const inlineoverridevirtual

code

ID

message

std::string llvm::lsp::LSPError::message


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