SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
errors.hpp File Reference
#include <string_view>
#include <format>
#include <cstdio>
#include <string>
#include <cstdint>
#include <algorithm>
#include <version>
#include "serif/utils/misc/terminal/colors.hpp"
#include "serif/utils/misc/concepts/exceptions.hpp"
#include "serif/utils/error/codes.hpp"
#include "serif/utils/types/strings.hpp"
Include dependency graph for errors.hpp:

Namespaces

namespace  serif
 
namespace  serif::utils
 
namespace  serif::utils::errors
 

Functions

template<SERiFErrorCode code>
std::string serif::utils::errors::format_error_message (const std::string_view message, auto... args)
 
template<misc::concepts::IsException ExceptionT, SERiFErrorCode code>
void serif::utils::errors::serif_error (const std::string_view message, auto... args)
 
template<SERiFErrorCode code, bool condition, types::FixedString message>
constexpr void serif::utils::errors::serif_assert ()
 
template<SERiFErrorCode code, misc::concepts::IsException ExceptionT = std::logic_error>
void serif::utils::errors::serif_assert (const bool condition, const std::string_view message, auto &&... args)
 
template<SERiFErrorCode code, misc::concepts::IsException ExceptionT = std::logic_error>
void serif::utils::errors::serif_ensure (const bool condition, const std::string_view message, auto... args)
 
template<SERiFErrorCode code, bool condition, types::CTString message>
constexpr void serif::utils::errors::serif_ensure ()