sparrow 1.0.0
Loading...
Searching...
No Matches
sparrow::bad_nullable_access Class Reference

Exception thrown when accessing a null nullable value. More...

#include <nullable.hpp>

Inheritance diagram for sparrow::bad_nullable_access:
[legend]
Collaboration diagram for sparrow::bad_nullable_access:
[legend]

Public Member Functions

 bad_nullable_access () noexcept=default
 
 bad_nullable_access (const bad_nullable_access &) noexcept=default
 
bad_nullable_accessoperator= (const bad_nullable_access &) noexcept=default
 
const char * what () const noexcept override
 Gets the descriptive error message.
 

Detailed Description

Exception thrown when accessing a null nullable value.

This exception is thrown by nullable::value() when attempting to access the underlying value of a nullable that is currently in a null state.

Examples
/home/runner/work/sparrow/sparrow/include/sparrow/utils/nullable.hpp.

Definition at line 124 of file nullable.hpp.

Constructor & Destructor Documentation

◆ bad_nullable_access() [1/2]

sparrow::bad_nullable_access::bad_nullable_access ( )
defaultnoexcept
Examples
/home/runner/work/sparrow/sparrow/include/sparrow/utils/nullable.hpp.
Here is the caller graph for this function:

◆ bad_nullable_access() [2/2]

sparrow::bad_nullable_access::bad_nullable_access ( const bad_nullable_access & )
defaultnoexcept
Here is the call graph for this function:

Member Function Documentation

◆ operator=()

bad_nullable_access & sparrow::bad_nullable_access::operator= ( const bad_nullable_access & )
defaultnoexcept
Examples
/home/runner/work/sparrow/sparrow/include/sparrow/utils/nullable.hpp.
Here is the call graph for this function:

◆ what()

const char * sparrow::bad_nullable_access::what ( ) const
inlinenodiscardoverridenoexcept

Gets the descriptive error message.

Returns
C-string describing the error
Postcondition
Returns non-null pointer to static error message
Examples
/home/runner/work/sparrow/sparrow/include/sparrow/utils/nullable.hpp.

Definition at line 139 of file nullable.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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