DUDS
Distributed Update of Data from Something
duds::data::UnitBadConversion Struct Reference

A conversion between units was attempted that cannot be performed. More...

#include <Unit.hpp>

Inheritance diagram for duds::data::UnitBadConversion:
Collaboration diagram for duds::data::UnitBadConversion:

Detailed Description

A conversion between units was attempted that cannot be performed.

This is used when going between a value of units determined by a Unit, such as Quantity, and another data type. Time types, like std::chrono::duration, specify their units in the type. A conversion to a duration type from a value with a Unit must fail if the Unit is not duds::data::units::Second. The failure should throw this exception.

Definition at line 61 of file Unit.hpp.


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