13 #ifndef __UT_ERRORCODE_H__
14 #define __UT_ERRORCODE_H__
18 #include <system_error>
27 template <
typename EnumT>
35 "Enum must be an error code enum.");
43 #endif // __UT_ERRORCODE_H__
GLsizei const GLfloat * value
std::error_condition UT_ErrorCondition
std::error_category UT_ErrorCategory
UT_ErrorCode make_error_code(NET::CurlError e)
std::error_code UT_ErrorCode
auto UTmakeErrorCode(EnumT e) -> decltype(make_error_code(e))
Make a UT_ErrorCode based on the provided namespaced enum class.
UT_API void UTlogErrorCode(const UT_ErrorCode &ec, const UT_StringHolder &what)
Helper method to log an error code.