MLIR  20.0.0git
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
mlir::lsp::LSPError Class Reference

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

#include "mlir/Tools/lsp-server-support/Protocol.h"

+ Inheritance diagram for mlir::lsp::LSPError:

Public Member Functions

 LSPError (std::string message, ErrorCode code)
 
void log (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

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

Definition at line 75 of file Protocol.h.

Constructor & Destructor Documentation

◆ LSPError()

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

Definition at line 81 of file Protocol.h.

Member Function Documentation

◆ convertToErrorCode()

std::error_code mlir::lsp::LSPError::convertToErrorCode ( ) const
inlineoverride

Definition at line 87 of file Protocol.h.

◆ log()

void mlir::lsp::LSPError::log ( raw_ostream &  os) const
inlineoverride

Definition at line 84 of file Protocol.h.

References code, and message.

Member Data Documentation

◆ code

ErrorCode mlir::lsp::LSPError::code

Definition at line 78 of file Protocol.h.

Referenced by log().

◆ ID

char LSPError::ID
static

Definition at line 79 of file Protocol.h.

◆ message

std::string mlir::lsp::LSPError::message

Definition at line 77 of file Protocol.h.

Referenced by log().


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