cornelluniversity::vetsim_timeout Class Reference

Exception object for use with the vet serial protocol. This is intended to catch errors resulting from failed checksum (crc16) validation checks. A likely scenerio is to catch the failue and reply to the transmitter with a NAK, essentially asking for a retransmission. cornelluniversity::vetsim_exception. More...

#include <excepts.h>

Inheritance diagram for cornelluniversity::vetsim_timeout:

cornelluniversity::vetsim_exception List of all members.

Public Member Functions

 vetsim_timeout (const std::string &errstr)
 constructor
 vetsim_timeout (const char *errstr)
 constructor, overloaded to accept the traditional c-style string.

Detailed Description

Exception object for use with the vet serial protocol. This is intended to catch errors resulting from failed checksum (crc16) validation checks. A likely scenerio is to catch the failue and reply to the transmitter with a NAK, essentially asking for a retransmission. cornelluniversity::vetsim_exception.


Constructor & Destructor Documentation

cornelluniversity::vetsim_timeout::vetsim_timeout ( const std::string &  errstr  )  [inline]

constructor

Parameters:
errstr - sets a custom error message.
See also:
vetexcept_badchksum(const char * errstr)

cornelluniversity::vetsim_timeout::vetsim_timeout ( const char *  errstr  )  [inline]

constructor, overloaded to accept the traditional c-style string.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
errstr - sets a custom error message.
See also:
vetexcept_badchksum(const std::string & errstr)


The documentation for this class was generated from the following file:
Generated on Wed Nov 14 12:01:02 2012 for VetSim Applications by  doxygen 1.4.7