forErrno

fun forErrno(errno: Int = platform.posix.errno, posixFunctionName: String? = null): PosixException

Create the corresponding instance of PosixException with error message provided by the underlying POSIX implementation.

Report a problem

Return

an instance of PosixException or it's subtype

Parameters

errno

error code returned by posix.platform.errno

posixFunctionName

optional function name to be included to the exception message