wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::Err Class Reference

#include <result.hpp>

Public Member Functions

template<typename T>
requires std::is_error_code_enum_v<T>
 Err (T error, std::source_location loc=std::source_location::current())
 Err (const std::error_code &ec, std::source_location loc=std::source_location::current())
 Err (int32_t ec, const std::error_category &e_cat, std::source_location loc=std::source_location::current())
auto error () const
auto message () const
auto extra_msg () const
auto location () const

Private Attributes

std::error_code error_code_
std::optional< std::string > extra_message_
std::source_location loc_

Constructor & Destructor Documentation

◆ Err() [1/3]

template<typename T>
requires std::is_error_code_enum_v<T>
wren::Err::Err ( T error,
std::source_location loc = std::source_location::current() )
inline
Here is the call graph for this function:

◆ Err() [2/3]

wren::Err::Err ( const std::error_code & ec,
std::source_location loc = std::source_location::current() )
inline

◆ Err() [3/3]

wren::Err::Err ( int32_t ec,
const std::error_category & e_cat,
std::source_location loc = std::source_location::current() )
inline

Member Function Documentation

◆ error()

auto wren::Err::error ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ extra_msg()

auto wren::Err::extra_msg ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ location()

auto wren::Err::location ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ message()

auto wren::Err::message ( ) const
inlinenodiscard

Member Data Documentation

◆ error_code_

std::error_code wren::Err::error_code_
private

◆ extra_message_

std::optional<std::string> wren::Err::extra_message_
private

◆ loc_

std::source_location wren::Err::loc_
private

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