Public Member Functions | List of all members
sol::bad_optional_access Class Reference

An exception for when an optional is accessed through specific methods while it is not engaged. More...

#include <sol.hpp>

Inheritance diagram for sol::bad_optional_access:
Inheritance graph
[legend]

Public Member Functions

 bad_optional_access ()=default
 Default-constructs an optional exception. More...
 
const char * what () const noexcept override
 Returns a pointer to a null-terminated string containing the reason for the exception. More...
 

Detailed Description

An exception for when an optional is accessed through specific methods while it is not engaged.

Definition at line 5227 of file sol.hpp.

Constructor & Destructor Documentation

◆ bad_optional_access()

sol::bad_optional_access::bad_optional_access ( )
default

Default-constructs an optional exception.

Member Function Documentation

◆ what()

const char* sol::bad_optional_access::what ( ) const
inlineoverridenoexcept

Returns a pointer to a null-terminated string containing the reason for the exception.

Definition at line 5232 of file sol.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:31