fpmas 1.6
Public Member Functions | List of all members
fpmas::exceptions::BadTypeException Class Reference

#include <serializer_set_up.h>

Inheritance diagram for fpmas::exceptions::BadTypeException:
Inheritance graph
[legend]
Collaboration diagram for fpmas::exceptions::BadTypeException:
Collaboration graph
[legend]

Public Member Functions

 BadTypeException (const std::type_index &bad_type)
 
const char * what () const noexcept override
 

Detailed Description

Exception raised when serializing an std::type_index if the provided type index not correspond to any registered type.

See also
register_types
nlohmann::adl_serializer<std::type_index>

Constructor & Destructor Documentation

◆ BadTypeException()

fpmas::exceptions::BadTypeException::BadTypeException ( const std::type_index &  bad_type)
inline

BadTypeException constructor.

Parameters
bad_typeunregistered std::type_index

Member Function Documentation

◆ what()

const char * fpmas::exceptions::BadTypeException::what ( ) const
inlineoverridenoexcept

Returns the explanatory string.

See also
https://en.cppreference.com/w/cpp/error/exception/what

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