HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ErrorCode.h File Reference
#include "UT_API.h"
#include <system_error>
+ Include dependency graph for UT_ErrorCode.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using UT_ErrorCode = std::error_code
 
using UT_ErrorCondition = std::error_condition
 
using UT_ErrorCategory = std::error_category
 

Functions

template<typename EnumT >
auto UTmakeErrorCode (EnumT e) -> decltype(make_error_code(e))
 Make a UT_ErrorCode based on the provided namespaced enum class. More...
 
UT_API void UTlogErrorCode (const UT_ErrorCode &ec, const UT_StringHolder &what)
 Helper method to log an error code. More...
 

Typedef Documentation

using UT_ErrorCategory = std::error_category

Definition at line 22 of file UT_ErrorCode.h.

using UT_ErrorCode = std::error_code

Definition at line 20 of file UT_ErrorCode.h.

using UT_ErrorCondition = std::error_condition

Definition at line 21 of file UT_ErrorCode.h.

Function Documentation

UT_API void UTlogErrorCode ( const UT_ErrorCode ec,
const UT_StringHolder what 
)

Helper method to log an error code.

template<typename EnumT >
auto UTmakeErrorCode ( EnumT  e) -> decltype(make_error_code(e))

Make a UT_ErrorCode based on the provided namespaced enum class.

Definition at line 29 of file UT_ErrorCode.h.