cornelluniversity::vetsim_exception Class Reference

Base exception object for use within the vet application-space. It is intended that this will be the primary exception object in cases where you need to trap things that can't be caught before runtime; extend as needed for situations that can be uniquely dealt with. I've added a details() rouitne which will just give you the std::string variant of what(). std::runtime_error. More...

#include <excepts.h>

Inheritance diagram for cornelluniversity::vetsim_exception:

cornelluniversity::vetsim_badchksum cornelluniversity::vetsim_serial cornelluniversity::vetsim_timeout List of all members.

Public Member Functions

 vetsim_exception (const std::string &errstr)
 constructor
 vetsim_exception (const char *errstr)
 constructor, overloaded to accept the traditional c-style string.
virtual const std::string details (void) const
 Error string accessor. Provides a std::string response of the what() output.

Detailed Description

Base exception object for use within the vet application-space. It is intended that this will be the primary exception object in cases where you need to trap things that can't be caught before runtime; extend as needed for situations that can be uniquely dealt with. I've added a details() rouitne which will just give you the std::string variant of what(). std::runtime_error.


Constructor & Destructor Documentation

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

constructor

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

cornelluniversity::vetsim_exception::vetsim_exception ( 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(const std::string & errstr)


Member Function Documentation

virtual const std::string cornelluniversity::vetsim_exception::details ( void   )  const [inline, virtual]

Error string accessor. Provides a std::string response of the what() output.

Returns:
const std::string - implementation defined error string.
See also:
const char * what()


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