#include <synchro.h>
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. |
Note that this class does not allocate memory at all. It is used for reporting IO errors which should set errno.
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.
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 ..."
int rpa::exception_errno::_errNo [private] |
char rpa::exception_errno::_Msg[BUFSIZ] [private] |
Used to store a user message. Big enough for most messages.