HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
exception.hpp
1// Copyright Take Vos 2020.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#include "fmt/format.h"
6#include <exception>
7#include <string_view>
8
9#pragma once
10
11namespace tt {
12
22public:
24
25 template<typename FirstArg, typename... Args>
26 parse_error(std::string_view fmt, FirstArg const &arg1, Args const &... args) noexcept :
27 parse_error(fmt::format(fmt, arg1, args...)) {}
28};
29
38public:
40
41 template<typename FirstArg, typename... Args>
42 operation_error(std::string_view fmt, FirstArg const &arg1, Args const &... args) noexcept :
43 operation_error(fmt::format(fmt, arg1, args...))
44 {
45 }
46};
47
49public:
51
52 template<typename FirstArg, typename... Args>
53 io_error(std::string_view fmt, FirstArg const &arg1, Args const &... args) noexcept :
54 io_error(fmt::format(fmt, arg1, args...))
55 {
56 }
57};
58
60public:
62
63 template<typename FirstArg, typename... Args>
64 gui_error(std::string_view fmt, FirstArg const &arg1, Args const &... args) noexcept :
65 gui_error(fmt::format(fmt, arg1, args...))
66 {
67 }
68};
69
71public:
73
74 template<typename FirstArg, typename... Args>
75 key_error(std::string_view fmt, FirstArg const &arg1, Args const &... args) noexcept :
76 key_error(fmt::format(fmt, arg1, args...))
77 {
78 }
79};
80
82public:
84
85 template<typename FirstArg, typename... Args>
86 url_error(std::string_view fmt, FirstArg const &arg1, Args const &... args) noexcept :
87 url_error(fmt::format(fmt, arg1, args...))
88 {
89 }
90};
91
92}
93
Exception thrown during parsing on an error.
Definition exception.hpp:21
Exception thrown during execution of a dynamic operation.
Definition exception.hpp:37
Definition exception.hpp:48
Definition exception.hpp:59
Definition exception.hpp:70
Definition exception.hpp:81