libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Member Functions | List of all members
donut::BadVariantAccess Struct Reference

Exception type that is thrown on an attempt to erroneously access an inactive alternative of a Variant when using a safe access function such as Variant::get(). More...

#include <donut/Variant.hpp>

Inheritance diagram for donut::BadVariantAccess:

Public Member Functions

 BadVariantAccess () noexcept=default
 
const char * what () const noexcept override
 

Detailed Description

Exception type that is thrown on an attempt to erroneously access an inactive alternative of a Variant when using a safe access function such as Variant::get().

Constructor & Destructor Documentation

◆ BadVariantAccess()

donut::BadVariantAccess::BadVariantAccess ( )
defaultnoexcept

Member Function Documentation

◆ what()

const char* donut::BadVariantAccess::what ( ) const
inlineoverridenoexcept

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