Contains all the MicroStrain custom exceptions that can be thrown in MSCL
The generic MicroStrain exception (base class)
Initializes the Error object with the default description
Error( |
| ) : m_description(description) |
Initializes the Error object with a custom description
description const std::string& | the description of the error to be thrown |
overriding the default std::exception what() function, gets the description of the thrown exception
A command/feature was attempted to be used that was not supported.
Initializes the Error_NotSupported object with a default description
Error_NotSupported( |
| ) : Error(description) |
Initializes the Error_NotSupported object with a custom description
description const std::string& | the description of the error to be thrown |
Initializes the Error_NoData object with a default description
Error_NoData( |
| ): Error(description) |
Initializes the Error_NoData object with a custom description
description const std::string& | the description of the error to be thrown |
Data of one type was accessed as another type (simple_any)
Intializes the Error_BadDataType object with a default description
The sample rate is invalid or unknown for the given device
Initializes the Error_UnknownSampleRate object with a default description
Error_UnknownSampleRate( |
| ) : Error(description) |
Initializes the Error_UnknownSampleRate object with a custom description
description const std::string& | the description of the error to be thrown |
The exception for failing to communicate with a device.
Initializes the Error_Communication object.
Error_Communication( |
| ) : Error(description) |
Initializes the Error_Communication object.
description const std::string& | the description to set |
The exception for failing to communicate with a WirelessNode.
Error_NodeCommunication( |
| ): Error_Communication("Failed to communicate with the Wireless Node."), m_nodeAddress(nodeAddress) |
Initializes the Error_NodeCommunication object.
nodeAddress uint16 | The node address of the WirelessNode that failed to communicate. |
Error_NodeCommunication( |
| ): Error_Communication(description), m_nodeAddress(nodeAddress) |
Initializes the Error_NodeCommunication object.
nodeAddress uint16 | The node address of the WirelessNode that failed to communicate. |
description const std::string& | the description to set |
gets the node address of the WirelessNode that failed to communicate
The generic connection exception.
Initializes the Error_Connection object, sets the error code to a default of -1
Error_Connection( |
| ): Error("Connection error."), m_code(code) |
Initializes the Error_Connection object
code int | the exception error code |
Error_Connection( |
| ): Error(description), m_code(-1) |
Initializes the Error_Connection object
description const std::string& | the description to set |
Error_Connection( |
| ): Error(description), m_code(code) |
Initializes the Error_Connection object
description const std::string& | the description to set |
code int | the exception error code |
gets the exception error code (system error codes, or -1 by default)
Error_InvalidSerialPort( |
| ): Error_Connection("Invalid Com Port.", code) |
Initializes the Error_InvalidSerialPort object
code int | the exception error code |
Error_InvalidTcpServer( |
| ): Error_Connection("Invalid TCP/IP Server: " + message, code) |
Initializes the Error_InvalidTcpServer object
code int | the exception error code |
Error_InvalidUnixSocket( |
| ): Error_Connection("Invalid Unix Socket: " + message, code) |
Initializes the Error_InvalidUnixSocket object
code int | the exception error code |
Initializes the Error_InertialCmdFailed object, sets the error code to a default of -1
Error_InertialCmdFailed( |
| ): Error("The Inertial command has failed."), m_code(code) |
Initializes the Error_InertialCmdFailed object
code int | the exception error code |
gets the exception error code
The Configuration is invalid.
Error_InvalidConfig( |
| ): Error("Invalid Configuration."), m_issues(issues) |
Initializes the Error_InvalidConfig object
issues const ConfigIssues& | The ConfigIssues that caused the invalid configuration exception. |
Gets the ConfigIssues that caused the invalid configuration exception.
The Configuration for a WirelessNode is invalid.
Error_InvalidNodeConfig( |
| ) : Error_InvalidConfig(issues), m_nodeAddress(nodeAddress) |
Initializes the Error_InvalidNodeConfig object
issues const ConfigIssues& | The ConfigIssues that caused the invalid configuration exception. |
Gets the node address of the Node that this exception pertains to.