Not Enough Math
Lightweight zero-dependency C++ math library
Loading...
Searching...
No Matches
err.hpp File Reference
#include <stdexcept>
#include <limits>
#include "config.hpp"
#include "nan.hpp"

Go to the source code of this file.

Namespaces

namespace  nem
 
namespace  nem::error
 
namespace  nem::error::internal
 

Macros

#define NEM_RUNTIME_ASSERT(condition, message)
 

Enumerations

enum class  nem::error::Kind : unsigned char {
  nem::error::RuntimeError = 0 , nem::error::OutOfRange , nem::error::DivisionByZero , nem::error::InvalidArgument ,
  nem::error::ZeroVector
}
 

Functions

template<nem::scalar_type T>
nem::error::internal::invalid_result_base ()
 For non-scalar objects.
 
void nem::error::internal::push_log (nem_string msg)
 
void nem::error::internal::push_log_prefix (nem_string prefix, nem_string msg)
 
void nem::error::internal::force_log (nem_string msg, nem::error::Kind type=Kind::RuntimeError)
 
void nem::error::report (nem_string msg, nem::error::Kind type=Kind::RuntimeError)
 
void nem::error::report_invalid (nem::error::Kind kind=Kind::RuntimeError, const char *const msg=nullptr)
 
template<typename T >
nem::error::invalid_result (nem::error::Kind kind=Kind::RuntimeError, const char *const msg=nullptr)
 

Macro Definition Documentation

◆ NEM_RUNTIME_ASSERT

#define NEM_RUNTIME_ASSERT ( condition,
message )
Value:
assert((condition) && (message))

Definition at line 9 of file err.hpp.