wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::Error Struct Reference

A wowlib operation failure: a machine-readable code, a human-readable message, and the originating native (StormLib/CascLib/OS) error value when one exists. More...

#include <wowlib/core/error.hpp>

Public Attributes

ErrorCode code
 The failure category.
std::string message
 Human-readable description of what failed, with context.
std::uint32_t nativeError = 0
 Raw GetCascError()/GetLastError() value from the native library, 0 if not applicable.

Detailed Description

A wowlib operation failure: a machine-readable code, a human-readable message, and the originating native (StormLib/CascLib/OS) error value when one exists.

Not welded — bindings translate it into target-language exceptions instead.

Definition at line 63 of file error.hpp.

Member Data Documentation

◆ code

ErrorCode wowlib::Error::code

The failure category.

Definition at line 64 of file error.hpp.

Referenced by wowlib::to_string().

◆ message

std::string wowlib::Error::message

Human-readable description of what failed, with context.

Definition at line 65 of file error.hpp.

Referenced by wowlib::to_string().

◆ nativeError

std::uint32_t wowlib::Error::nativeError = 0

Raw GetCascError()/GetLastError() value from the native library, 0 if not applicable.

Definition at line 69 of file error.hpp.

Referenced by wowlib::to_string().


The documentation for this struct was generated from the following file: