Mastering C++ Error Handling. Triggers: exceptions, try-catch, noexcept, std::expected, std::optional, error codes, assert, terminate.
Is this error recoverable?
std::expected
throw
assert
std::terminate
noexcept
[[nodiscard]]
Is absence valid?
std::optional<T>
Does caller need details?
std::expected<T, E>
bool
std::optional
Is it a Logic Error (Bug)?
assert()
std::terminate()