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

ustl::libc_exception Class Reference

Thrown when a libc function returns an error. More...

#include <ustl.h>

Inheritance diagram for ustl::libc_exception:

ustl::exception ustl::file_exception ustl::stream_bounds_exception List of all members.

Public Member Functions

 libc_exception (const char *operation) throw ()
 Initializes the empty object. operation is the function that returned the error code.
 libc_exception (const libc_exception &v) throw ()
 Copies object v.
const libc_exceptionoperator= (const libc_exception &v)
 Copies object v.
virtual const char * what (void) const throw ()
 Returns the name of the exception.
virtual void info (string &msgbuf, const char *fmt=NULL) const throw ()
 Returns a descriptive error message. fmt="%s: m (d)".
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

int m_Errno
 Error code returned by the failed operation.
const char * m_Operation
 Name of the failed operation.

Detailed Description

Thrown when a libc function returns an error.

Contains an errno and description. This is a uSTL extension.


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