HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions
tt::sub_error< Tag, InfoTags > Class Template Referencefinal
Inheritance diagram for tt::sub_error< Tag, InfoTags >:
tt::error

Public Types

using TAG = Tag
 

Public Member Functions

std::type_index tag () const noexcept override
 
template<typename Fmt , typename... Args>
 sub_error (Fmt const &fmt, Args &&... args) noexcept
 
sub_errorcaused_by (error const &other) noexcept
 
template<typename InfoTag , typename InfoValueType >
sub_errorset (InfoValueType &&info_value) noexcept
 
sub_errorset_location (parse_location const &location) noexcept
 
template<typename InfoTag >
datumget () noexcept
 
template<typename InfoTag >
datum const & get () const noexcept
 
template<typename InfoTag >
bool has () const noexcept
 
sub_errorlog (char const *source_file, int source_line)
 
std::string error_info_string () const noexcept override
 
- Public Member Functions inherited from tt::error
template<typename Fmt , typename... Args>
 error (Fmt const &fmt, Args &&... args) noexcept
 
std::string name () const noexcept
 
std::string string () const noexcept
 
std::string message () const noexcept
 
errorcaused_by (error const &other) noexcept
 
template<typename InfoTag , typename InfoValueType >
errorset (InfoValueType &&info_value) noexcept
 
errorset_location (parse_location const &location) noexcept
 
errormerge_location (parse_location statement_location) noexcept
 
template<typename InfoTag >
datumget () noexcept
 
template<typename InfoTag >
datum const & get () const noexcept
 
template<typename InfoTag >
bool has () const noexcept
 

Member Function Documentation

◆ error_info_string()

template<typename Tag , typename... InfoTags>
std::string tt::sub_error< Tag, InfoTags >::error_info_string ( ) const
inlineoverridevirtualnoexcept

Implements tt::error.

◆ set()

template<typename Tag , typename... InfoTags>
template<typename InfoTag , typename InfoValueType >
sub_error & tt::sub_error< Tag, InfoTags >::set ( InfoValueType && info_value)
inlinenoexcept

A non-virtual method like this will return the actual class instance which means throw knows exactly which class is being thrown.

◆ tag()

template<typename Tag , typename... InfoTags>
std::type_index tt::sub_error< Tag, InfoTags >::tag ( ) const
inlineoverridevirtualnoexcept

Implements tt::error.


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