ObjFW
Classes | Functions
OFException.h File Reference
#import "OFObject.h"

Go to the source code of this file.

Classes

class  OFException
 The base class for all exceptions in ObjFW. More...
 

Functions

OFStringOFStrError (int errNo)
 Converts the specified error number (from <errno.h>) to a string. More...
 

Function Documentation

◆ OFStrError()

OFString* OFStrError ( int  errNo)

Converts the specified error number (from <errno.h>) to a string.

Unlike the system function strerror, this function is always thread-safe.

As an addition, on Windows, it is also able to convert socket error numbers to string.

Parameters
errNoThe error number to convert to a string
Returns
A string describing the error