file
error_code.hppNamespaces
Classes
-
template <>struct std::is_error_code_enum<btu::tex::TextureErr>
- struct btu::tex::TextureErrCategory
-
template <>struct std::is_error_condition_enum<btu::tex::FailureSource>
- class btu::tex::FailureSourceCategory
Enums
-
enum class FailureSource: std::
uint8_t { BadUserInput = 1, SystemError = 2 } -
enum class TextureErr: std::
uint8_t { Success = 0, Unknown = 1, BadInput, MemoryAllocation, WriteFailure, ReadFailure }
Functions
-
auto error_from_hresult(int64_t hr,
std::
error_code default_err = TextureErr::Unknown, std:: source_location loc = std:: source_location:: current()) → Error -
auto make_error_code(TextureErr e) → std::
error_code -
auto make_error_condition(FailureSource e) → std::
error_condition
Variables
- const FailureSourceCategory k_failure_source_category
- const TextureErrCategory k_texture_err_category