ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | List of all members
ocpp::StringToEnumException Class Reference

Exception used when conversion from string to enum fails. More...

#include <types.hpp>

Inheritance diagram for ocpp::StringToEnumException:
ocpp::EnumConversionException

Public Member Functions

 StringToEnumException (std::string_view str, std::string_view type)
 Creates a new StringToEnumException. More...
 

Detailed Description

Exception used when conversion from string to enum fails.

Constructor & Destructor Documentation

◆ StringToEnumException()

ocpp::StringToEnumException::StringToEnumException ( std::string_view  str,
std::string_view  type 
)
inline

Creates a new StringToEnumException.

Parameters
strinput string that failed to convert
typename of the enum trying to convert to

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