Wayverb
exceptions.h
1 #pragma once
2 
3 #include <exception>
4 
5 namespace wayverb {
6 namespace core {
7 namespace exceptions {
8 
9 class exception : public std::runtime_error {
10 public:
11  using std::runtime_error::runtime_error;
12 
13 protected:
14  ~exception() noexcept = default;
15 };
16 
17 class suspicious_value : public exception {
18  using exception::exception;
19 
20 protected:
21  ~suspicious_value() noexcept = default;
22 };
23 
24 class value_is_nan final : public suspicious_value {
25  using suspicious_value::suspicious_value;
26 };
27 
28 class value_is_inf final : public suspicious_value {
29  using suspicious_value::suspicious_value;
30 };
31 
32 } // namespace exceptions
33 } // namespace core
34 } // namespace wayverb
Definition: exceptions.h:9
Definition: traits.cpp:2
Definition: capsule_base.h:9
Definition: exceptions.h:28
Definition: exceptions.h:24