Up: Classes   [Index]


SystemErrnoException

SystemErrnoException Class

The SystemErrnoException class translates operating system errors into Ctalk exceptions. The exceptions, which are specific to each operating system, correspond to the interpretation of the system’s errno global variable and allows Ctalk to work with system errors even if the system implements its error codes via a built-in variable, a macro, or function.

There is an example of a system error handler in the Exception class section. See Exception.

Class Variables

sysErrno

The sysErrno object contains the value of the C library’s errno variable or macro.

Instance Methods

raiseException (char *data)

Sets the value of the sysErrno class variable and raises an exception if the C library’s errno variable or macro returns a nonzero value.