Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ustl::stream_bounds_exception Class Reference

Stream bounds checking. More...

#include <ustl.h>

Inheritance diagram for ustl::stream_bounds_exception:

ustl::libc_exception ustl::exception List of all members.

Public Member Functions

 stream_bounds_exception (const char *operation, const char *type, uoff_t offset, size_t expected, size_t remaining) throw ()
 Initializes the empty object. operation is the function that returned the error code.
virtual const char * what (void) const throw ()
 Returns the name of the libc_exception.
virtual void info (string &msgbuf, const char *fmt=NULL) const throw ()
 Returns a descriptive error message. fmt="%s stream s: %u: expected u, available u";.
virtual void read (istream &is)
 Reads the exception from stream is.
virtual void write (ostream &os) const
 Writes the exception into stream os.
virtual size_t stream_size (void) const
 Returns the size of the written exception.

Protected Attributes

const char * m_TypeName
uoff_t m_Offset
size_t m_Expected
size_t m_Remaining

Detailed Description

Stream bounds checking.

Only thrown in debug builds unless you say otherwise in config.h This is a uSTL extension.


The documentation for this class was generated from the following files:
Generated on Mon Jan 17 14:35:03 2005 for uSTL by 1.3.9 Doxygen Hosted on SourceForge.net