karoo::rock_exception_io Class Reference

This exception class is used as a base class for any sort of IO exception that occurs during messaging between rock objects. More...

#include <data.h>

Inheritance diagram for karoo::rock_exception_io:

karoo::rock_exception_read

List of all members.

Public Member Functions

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

Public Attributes

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

Protected Attributes

char buf [100]


Detailed Description

This exception class is used as a base class for any sort of IO exception that occurs during messaging between rock objects.

It stores the size and position in the data wehere the error occurred, and it also maintains a 100 byte character buffer for a short explanatory message.


Constructor & Destructor Documentation

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

Construct a rock messaging IO 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.

References alloc_size, pos, and size.


Member Function Documentation

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

Get a description of the cause of the exception.

Returns:
the short English description of the error.

Reimplemented in karoo::rock_exception_read.

References alloc_size, pos, and size.


Member Data Documentation

the position in the array of data where the error occurred.

Referenced by rock_exception_io(), karoo::rock_exception_read::what(), and what().


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