22#include <kiwano/core/Common.h>
24#include <system_error>
31typedef std::exception Exception;
35typedef std::runtime_error RuntimeError;
39typedef std::system_error SystemError;
49#ifdef KGE_PLATFORM_WINDOWS
59typedef std::errc error_enum;
65#ifdef KGE_PLATFORM_WINDOWS
70struct is_error_code_enum<kiwano::error_enum> : true_type
78const std::error_category& com_category() noexcept;
80inline std::error_code make_error_code(kiwano::error_enum errc) noexcept
82 return std::error_code(
static_cast<int>(errc), kiwano::com_category());
85inline std::error_condition make_error_condition(kiwano::error_enum errc)
noexcept
87 return std::error_condition(
static_cast<int>(errc), kiwano::com_category());
Definition: Exception.h:42