CARMA C++
BadDataSizeException Class Reference

Exception class for invalid data vector size. More...

#include <carma/canbus/exceptions.h>

Detailed Description

Exception class for invalid data vector size.

The carma::canbus library contains many routines for packing and unpacking raw data from a CAN message. CAN messages have a maximum of 8 bytes. This exception will be thrown, if for some reason the data from a CAN message is larger than expected (exceeds 8 bytes), is not large enough to perform the desired task (e.g. you are trying to convert one byte of data to a double), or the desired task will result in a data size > 8 bytes (e.g. you are trying to add a double to a vector already containing 8 bytes). This exception generally signals a programming error.


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