Construct version 5.4.4
An agent based modeling framework
dynet::could_not_convert Struct Reference

Exception meant to be caught and added to by the catching entity. More...

Inheritance diagram for dynet::could_not_convert:
Collaboration diagram for dynet::could_not_convert:

Public Member Functions

 could_not_convert (const std::string &_type, const std::string &val)
 
- Public Member Functions inherited from dynet::construct_exception
 construct_exception (const std::string &message)
 Initializes a std::runtime_error with the submitted message.
 
std::string string (void) const
 Copies the contents of the message into a string.
 

Public Attributes

std::string type
 Data type a variable couldn't be converted to. More...
 

Detailed Description

Exception meant to be caught and added to by the catching entity.

Thrown exclusively by #convert. Message: "Could not convert value to " + _type

Member Data Documentation

◆ type

std::string dynet::could_not_convert::type

Data type a variable couldn't be converted to.

summary>