Vulcan
Aerospace Engineering Utilities Built on Janus
Loading...
Searching...
No Matches
VulcanError.hpp
Go to the documentation of this file.
1#pragma once
9
10#include <stdexcept>
11#include <string>
12
13namespace vulcan {
14
18class VulcanError : public std::runtime_error {
19 public:
20 explicit VulcanError(const std::string &what)
21 : std::runtime_error("[vulcan] " + what) {}
22};
23
27class IOError : public VulcanError {
28 public:
29 explicit IOError(const std::string &what) : VulcanError("IO: " + what) {}
30};
31
35class SignalError : public VulcanError {
36 public:
37 explicit SignalError(const std::string &what)
38 : VulcanError("Signal: " + what) {}
39};
40
45 public:
46 explicit AtmosphereError(const std::string &what)
47 : VulcanError("Atmosphere: " + what) {}
48};
49
54 public:
55 explicit CoordinateError(const std::string &what)
56 : VulcanError("Coordinate: " + what) {}
57};
58
62class GravityError : public VulcanError {
63 public:
64 explicit GravityError(const std::string &what)
65 : VulcanError("Gravity: " + what) {}
66};
67
71class TimeError : public VulcanError {
72 public:
73 explicit TimeError(const std::string &what)
74 : VulcanError("Time: " + what) {}
75};
76
80class SensorError : public VulcanError {
81 public:
82 explicit SensorError(const std::string &what)
83 : VulcanError("Sensor: " + what) {}
84};
85
89class MathError : public VulcanError {
90 public:
91 explicit MathError(const std::string &what)
92 : VulcanError("Math: " + what) {}
93};
94
98class WindError : public VulcanError {
99 public:
100 explicit WindError(const std::string &what)
101 : VulcanError("Wind: " + what) {}
102};
103
108 public:
109 explicit ValidationError(const std::string &what)
110 : VulcanError("Validation: " + what) {}
111};
112
113} // namespace vulcan
AtmosphereError(const std::string &what)
Definition VulcanError.hpp:46
CoordinateError(const std::string &what)
Definition VulcanError.hpp:55
GravityError(const std::string &what)
Definition VulcanError.hpp:64
IOError(const std::string &what)
Definition VulcanError.hpp:29
MathError(const std::string &what)
Definition VulcanError.hpp:91
SensorError(const std::string &what)
Definition VulcanError.hpp:82
SignalError(const std::string &what)
Definition VulcanError.hpp:37
TimeError(const std::string &what)
Definition VulcanError.hpp:73
ValidationError(const std::string &what)
Definition VulcanError.hpp:109
VulcanError(const std::string &what)
Definition VulcanError.hpp:20
WindError(const std::string &what)
Definition VulcanError.hpp:100
Definition Aerodynamics.hpp:11