Error
public
std.​exception
Error
Error_BadDataType
Error_Communication
Error_Connection
Error_InertialCmdFailed
and 4 other children

The generic MicroStrain exception (base class)

Variables
m_description
std::string m_description

the description of the error to be thrown, default value of "The MSCL has thrown an exception."

Functions
Error
Error() : m_description("MSCL has thrown an exception.")

Initializes the Error object with the default description

Error
Error(
const std::string &description
) : m_description(description)

Initializes the Error object with a custom description

Parameters
description
const std::string&

the description of the error to be thrown

what
const char* what () const throw ()

overriding the default std::exception what() function, gets the description of the thrown exception