Electroneum
Classes | Namespaces | Enumerations | Functions
error.h File Reference
#include <system_error>
#include <type_traits>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::is_error_code_enum<::common_error >
 

Namespaces

 std
 

Enumerations

enum class  common_error : int { kInvalidArgument = 1 , kInvalidErrorCode }
 

Functions

std::error_category const & common_category () noexcept
 
std::error_code make_error_code (::common_error value) noexcept
 

Enumeration Type Documentation

◆ common_error

enum common_error : int
strong
Enumerator
kInvalidArgument 

A function argument is invalid.

kInvalidErrorCode 

Default std::error_code given to expect<T>

Function Documentation

◆ common_category()

std::error_category const& common_category ( )
noexcept

◆ make_error_code()

std::error_code make_error_code ( ::common_error  value)
inlinenoexcept