mimic++ v4
Loading...
Searching...
No Matches
mimicpp::Error< Data > Class Template Referencefinal

#include <Reporter.hpp>

Inheritance diagram for mimicpp::Error< Data >:
[legend]
Collaboration diagram for mimicpp::Error< Data >:
[legend]

Public Member Functions

 Error (const std::string &what, Data &&data=Data{}, const std::source_location &loc=std::source_location::current())
 
const Data & data () const noexcept
 
const std::source_location & where () const noexcept
 

Constructor & Destructor Documentation

◆ Error()

template<typename Data = std::nullptr_t>
mimicpp::Error< Data >::Error ( const std::string & what,
Data && data = Data{},
const std::source_location & loc = std::source_location::current() )
inlineexplicitnodiscard

Member Function Documentation

◆ data()

template<typename Data = std::nullptr_t>
const Data & mimicpp::Error< Data >::data ( ) const
inlinenodiscardnoexcept

◆ where()

template<typename Data = std::nullptr_t>
const std::source_location & mimicpp::Error< Data >::where ( ) const
inlinenodiscardnoexcept

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