|
|
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 |
| |
|
error & | caused_by (error const &other) noexcept |
| |
| template<typename InfoTag , typename InfoValueType > |
| error & | set (InfoValueType &&info_value) noexcept |
| |
|
error & | set_location (parse_location const &location) noexcept |
| |
| error & | merge_location (parse_location statement_location) noexcept |
| |
|
template<typename InfoTag > |
| datum & | get () noexcept |
| |
|
template<typename InfoTag > |
| datum const & | get () const noexcept |
| |
|
template<typename InfoTag > |
| bool | has () const noexcept |
| |
◆ merge_location()
Merge locations. Used when the current exception is a expression inside a statement.
◆ name()
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: