rpa::exception_errno Class Reference

A simple exception class for reporting 'errno' errors. More...

#include <synchro.h>

List of all members.

Public Member Functions

 exception_errno ()
 A simple exception class for reporting 'errno' errors.
 exception_errno (const char *aMsg,...)
 Ctor with sprintf-like arguments.
const char * what (void) const throw ()
 Without 'throw()', gets compile error : "looser throw specifier ...".

Private Attributes

int _errNo
char _Msg [BUFSIZ]
 Used to store a user message. Big enough for most messages.


Detailed Description

A simple exception class for reporting 'errno' errors.

Note that this class does not allocate memory at all. It is used for reporting IO errors which should set errno.


Constructor & Destructor Documentation

rpa::exception_errno::exception_errno (  ) 

A simple exception class for reporting 'errno' errors.

Note that this class does not allocate memory at all. It is used for reporting IO errors which should set errno. If the message is too long, it will be truncated. It does not really matter.

Temporarily, just aborts, for debugging.

rpa::exception_errno::exception_errno ( const char *  aPattern,
  ... 
)

Ctor with sprintf-like arguments.

When throwing an exception, it is possible to construct an error message of fixed size. If the message is too long, it will be truncated. It does not really matter.

Just to be sure to see the message.

Temporarily, because it is easier to debug.


Member Function Documentation

const char * rpa::exception_errno::what ( void   )  const throw ()

Without 'throw()', gets compile error : "looser throw specifier ...".

Without 'throw()', gets compile error : "looser throw specifier ..."


Member Data Documentation

int rpa::exception_errno::_errNo [private]

char rpa::exception_errno::_Msg[BUFSIZ] [private]

Used to store a user message. Big enough for most messages.


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 10:20:38 2007 for rpa by  doxygen 1.4.7