LLDB mainline
lldb_protocol::mcp::Error Struct Reference

#include <Protocol.h>

Public Attributes

int64_t code = 0
 The error type that occurred.
std::string message
 A short description of the error.
std::optional< llvm::json::Value > data = std::nullopt
 Additional information about the error.

Detailed Description

Definition at line 60 of file Protocol.h.

Member Data Documentation

◆ code

int64_t lldb_protocol::mcp::Error::code = 0

The error type that occurred.

Definition at line 62 of file Protocol.h.

Referenced by lldb_protocol::mcp::fromJSON(), lldb_protocol::mcp::operator==(), and lldb_protocol::mcp::toJSON().

◆ data

std::optional<llvm::json::Value> lldb_protocol::mcp::Error::data = std::nullopt

Additional information about the error.

The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).

Definition at line 69 of file Protocol.h.

Referenced by lldb_protocol::mcp::fromJSON(), lldb_protocol::mcp::operator==(), and lldb_protocol::mcp::toJSON().

◆ message

std::string lldb_protocol::mcp::Error::message

A short description of the error.

The message SHOULD be limited to a concise single sentence.

Definition at line 65 of file Protocol.h.

Referenced by lldb_protocol::mcp::fromJSON(), lldb_protocol::mcp::operator==(), and lldb_protocol::mcp::toJSON().


The documentation for this struct was generated from the following file: