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

Public Member Functions

template<typename Fmt , typename... Args>
 error (Fmt const &fmt, Args &&... args) noexcept
 
virtual std::type_index tag () const noexcept=0
 
virtual std::string error_info_string () const noexcept=0
 
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
 

Friends

std::string to_string (error const &rhs)
 
std::ostreamoperator<< (std::ostream &os, error const &rhs)
 

Member Function Documentation

◆ merge_location()

error & tt::error::merge_location ( parse_location statement_location)
inlinenoexcept

Merge locations. Used when the current exception is a expression inside a statement.

◆ name()

std::string tt::error::name ( ) const
inlinenoexcept

Return the name of the exception.

◆ set()

template<typename InfoTag , typename InfoValueType >
error & tt::error::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.


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