Janus 2.0.0
High-performance C++20 dual-mode numerical framework
Loading...
Searching...
No Matches
JanusError.hpp
Go to the documentation of this file.
1#pragma once
9
10#include <stdexcept>
11#include <string>
12
13namespace janus {
14
19class JanusError : public std::runtime_error {
20 public:
25 explicit JanusError(const std::string &what) : std::runtime_error("[janus] " + what) {}
26};
27
32 public:
35 explicit InvalidArgument(const std::string &what) : JanusError(what) {}
36};
37
41class RuntimeError : public JanusError {
42 public:
45 explicit RuntimeError(const std::string &what) : JanusError(what) {}
46};
47
52 public:
55 explicit InterpolationError(const std::string &what) : JanusError("Interpolation: " + what) {}
56};
57
62 public:
65 explicit IntegrationError(const std::string &what) : JanusError("Integration: " + what) {}
66};
67
68} // namespace janus
IntegrationError(const std::string &what)
Construct with a descriptive message.
Definition JanusError.hpp:65
InterpolationError(const std::string &what)
Construct with a descriptive message.
Definition JanusError.hpp:55
InvalidArgument(const std::string &what)
Construct with a descriptive message.
Definition JanusError.hpp:35
JanusError(const std::string &what)
Construct with a descriptive message.
Definition JanusError.hpp:25
RuntimeError(const std::string &what)
Construct with a descriptive message.
Definition JanusError.hpp:45
Definition Diagnostics.hpp:19