karoo::rock_exception_read Class Reference

This type of exception is thrown when there is an error while reading a rock message. More...

#include <data.h>

Inheritance diagram for karoo::rock_exception_read:

karoo::rock_exception_io

List of all members.

Public Member Functions

 rock_exception_read (size_t pos, size_t size, size_t alloc_size)
 Construct a rock messaging read exception.
virtual const char * what () const throw ()
 Get a description of the cause of the exception.


Detailed Description

This type of exception is thrown when there is an error while reading a rock message.


Constructor & Destructor Documentation

karoo::rock_exception_read::rock_exception_read ( size_t  pos,
size_t  size,
size_t  alloc_size 
) [inline]

Construct a rock messaging read exception.

Parameters:
pos the position in the array of data where the error occurred.
size the size of the data (this is <= the allocated bufer size).
alloc_size the allocated buffer size.


Member Function Documentation

virtual const char* karoo::rock_exception_read::what (  )  const throw () [inline, virtual]

Get a description of the cause of the exception.

Returns:
the short English description of the error.

Reimplemented from karoo::rock_exception_io.

References karoo::rock_exception_io::alloc_size, karoo::rock_exception_io::pos, and karoo::rock_exception_io::size.


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

Generated on Tue Feb 16 15:04:29 2010 for Karoo by  doxygen 1.5.8