LLDB mainline
lldb_private::LanguageRuntime::ThrownErrorLocation Class Reference

A description of how to find an error thrown by a function. More...

#include <LanguageRuntime.h>

Public Member Functions

 ThrownErrorLocation (lldb::StackFrameSP callee_frame_sp=nullptr)
std::optional< lldb::ValueObjectSP > GetThrownError (lldb::StackFrameSP caller_frame_sp) const
 See LanguageRuntime::GetThrownError.

Private Attributes

LanguageRuntime * m_runtime = nullptr
std::optional< Value > m_location

Detailed Description

A description of how to find an error thrown by a function.

It is computed from the callee's frame, and is only meaningful in the frame the callee returns to.

Definition at line 232 of file LanguageRuntime.h.

Constructor & Destructor Documentation

◆ ThrownErrorLocation()

LanguageRuntime::ThrownErrorLocation::ThrownErrorLocation ( lldb::StackFrameSP callee_frame_sp = nullptr)
explicit

Definition at line 214 of file LanguageRuntime.cpp.

References m_location, and m_runtime.

Member Function Documentation

◆ GetThrownError()

std::optional< lldb::ValueObjectSP > LanguageRuntime::ThrownErrorLocation::GetThrownError ( lldb::StackFrameSP caller_frame_sp) const

See LanguageRuntime::GetThrownError.

Definition at line 229 of file LanguageRuntime.cpp.

References m_location, and m_runtime.

Member Data Documentation

◆ m_location

std::optional<Value> lldb_private::LanguageRuntime::ThrownErrorLocation::m_location
private

Definition at line 242 of file LanguageRuntime.h.

Referenced by GetThrownError(), and ThrownErrorLocation().

◆ m_runtime

LanguageRuntime* lldb_private::LanguageRuntime::ThrownErrorLocation::m_runtime = nullptr
private

Definition at line 241 of file LanguageRuntime.h.

Referenced by GetThrownError(), and ThrownErrorLocation().


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