MLIR  16.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 "Tools/lsp-server-support/Protocol.h"

+ Inheritance diagram for mlir::lsp::LSPError:
+ Collaboration 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 77 of file Protocol.h.

Constructor & Destructor Documentation

◆ LSPError()

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

Definition at line 83 of file Protocol.h.

Member Function Documentation

◆ convertToErrorCode()

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

Definition at line 89 of file Protocol.h.

◆ log()

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

Definition at line 86 of file Protocol.h.

Member Data Documentation

◆ code

ErrorCode mlir::lsp::LSPError::code

Definition at line 80 of file Protocol.h.

◆ ID

char LSPError::ID

Definition at line 81 of file Protocol.h.

Referenced by mapOptOrNull().

◆ message

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

Definition at line 79 of file Protocol.h.

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