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

#include <result.hpp>

Public Member Functions

template<typename T >
 Err (T error)
 
 Err (const std::error_code &ec)
 
 Err (int32_t ec, const std::error_category &e_cat)
 
auto error () const
 
auto message () const
 
auto extra_msg () const
 

Private Attributes

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

Constructor & Destructor Documentation

◆ Err() [1/3]

template<typename T >
wren::Err::Err ( T error)
inline

◆ Err() [2/3]

wren::Err::Err ( const std::error_code & ec)
inline

◆ Err() [3/3]

wren::Err::Err ( int32_t ec,
const std::error_category & e_cat )
inline

Member Function Documentation

◆ error()

auto wren::Err::error ( ) const
inline

◆ extra_msg()

auto wren::Err::extra_msg ( ) const
inline

◆ message()

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

Member Data Documentation

◆ error_code_

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

◆ extra_message_

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

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