A class that defines the domain of an ErrorCode to avoid code interferences.
Definition: error_domain.h:14
uint64_t IdType
Alias type of the domain ID.
Definition: error_domain.h:17
virtual const char * Name() const noexcept=0
Get the domain's name.
constexpr IdType Id() const noexcept
Get the domain ID.
Definition: error_domain.h:50
uint32_t CodeType
Alias type of the error code.
Definition: error_domain.h:19
virtual const char * Message(CodeType errorCode) const noexcept=0
Get error message of a specific error code.
constexpr ErrorDomain(IdType id) noexcept
Constructor.
Definition: error_domain.h:27