Str.strerror

Returns a string corresponding to the given error code, e.g. "no such process". You should use this function in preference to strerror(), because it returns a string in UTF-8 encoding, and since not all platforms support the strerror() function.

class Str
static
string
strerror
(
int errnum
)

Parameters

errnum int

the system error number. See the standard C errno documentation

Return Value

Type: string

a UTF-8 string describing the error code. If the error code is unknown, it returns "unknown error (<code>)". The string can only be used until the next call to g_strerror()

Meta