10#include "../macros.hpp"
18hi_export_module(hikogui.utility.exception : intf);
20hi_export
namespace hi {
inline namespace v1 {
60 template<
typename It,
typename...
Args>
73 template<
typename It,
typename...
Args>
90 auto column_nr = 0
_uz;
92 auto c32 =
char32_t{};
94 while (first != last) {
97 if ((
c8 & 0xc0) == 0x80) {
102 }
else if (
c8 & 0x80) {
134 return {line_nr, column_nr};
138 template<
typename It,
typename...
Args>
143 return {std::format(
"{}:{}: {}", line_nr + 1, column_nr + 1, std::format(
msg,
args...))};
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
The HikoGUI namespace.
Definition recursive_iterator.hpp:15
hi_export std::string get_last_error_message()
Get the OS error message from the last error received on this thread.
Definition exception_win32_impl.hpp:30
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
Exception thrown during parsing on an error.
Definition exception_intf.hpp:48
constexpr parse_error(It first, It last, char const *msg, Args const &...args) noexcept
Create a parse error at a specific point in UTF-8 encoded text.
Definition exception_intf.hpp:74
static constexpr std::pair< size_t, size_t > get_line_position(It first, It last, size_t tab_size) noexcept
Get the line and column position of an iterator in a UTF-8 string.
Definition exception_intf.hpp:87
constexpr parse_error(It first, It last, int tab_size, char const *msg, Args const &...args) noexcept
Create a parse error at a specific point in UTF-8 encoded text.
Definition exception_intf.hpp:61
Exception thrown when an item was not found.
Definition exception_intf.hpp:149
Exception thrown during execution of a dynamic operation.
Definition exception_intf.hpp:161
Exception thrown during I/O on an error.
Definition exception_intf.hpp:173
Exception thrown during an operating system call.
Definition exception_intf.hpp:184
Definition exception_intf.hpp:189
Definition exception_intf.hpp:194
Definition exception_intf.hpp:199
Definition exception_intf.hpp:204
Definition exception_intf.hpp:209
Cancel error is caused by user pressing cancel.
Definition exception_intf.hpp:218