Encapsulation of an error domain. An error domain is the controlling entity for ErrorCode’s error cod...
std::int32_t CodeType
Type alias for a domain-specific error code value.
ErrorDomain(ErrorDomain &&)=delete
Move construction shall be disabled.
ErrorDomain & operator=(ErrorDomain &&)=delete
Move assignment shall be disabled.
ErrorDomain & operator=(const ErrorDomain &)=delete
Copy assignment shall be disabled.
virtual const char * Message(CodeType error_code) noexcept=0
Return a textual representation of the given error code.
std::uint8_t SupportDataType
Type alias type for vendor-specific supplementary data.
virtual const char * Name() const noexcept=0
Return the name of this error domain.
constexpr IdType Id() const noexcept
Return the unique domain identifier.
ErrorDomain(const ErrorDomain &)=delete
Copy construction shall be disabled.
std::uint64_t IdType
Type alias for a unique ErrorDomain identifier type.
IdType id_
Store the unique identifier.