IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ice::ErrorCode Struct Reference

#include <ice/error.hxx>

Inheritance diagram for ice::ErrorCode:
ice::ErrorCodeError ice::ErrorCodeSuccess

Public Member Functions

constexpr ErrorCode (char const *definition) noexcept
constexpr auto type () const noexcept -> char
constexpr auto code () const noexcept -> ice::i32
constexpr auto category () const noexcept -> std::string_view
constexpr auto description () const noexcept -> std::string_view
constexpr operator bool () const noexcept
constexpr operator i32 () const noexcept

Public Attributes

char const * value

Detailed Description

Note
Error code ranges:
- [0000 - 2000) - Core engine codes
- [2000 - 4000) - Framework codes
- [4000 - 9999] - Game codes

Constructor & Destructor Documentation

◆ ErrorCode()

ice::ErrorCode::ErrorCode ( char const * definition)
explicitconstexprnoexcept

Member Function Documentation

◆ category()

auto ice::ErrorCode::category ( ) const -> std::string_view
constexprnoexcept

◆ code()

auto ice::ErrorCode::code ( ) const -> ice::i32
constexprnoexcept

◆ description()

auto ice::ErrorCode::description ( ) const -> std::string_view
constexprnoexcept

◆ operator bool()

ice::ErrorCode::operator bool ( ) const
inlineconstexprnoexcept

◆ operator i32()

ice::ErrorCode::operator i32 ( ) const
inlineexplicitconstexprnoexcept

◆ type()

auto ice::ErrorCode::type ( ) const -> char
constexprnoexcept

Member Data Documentation

◆ value

char const* ice::ErrorCode::value

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