_mapErrnoToPathError

private fnException _mapErrnoToPathError(string op, string p, int err, Throwable next, string file = __FILE__, size_t line = __LINE__)

Map an errno value to the PathError hierarchy.

Parameters

opOperation name for the message.
pPath the operation was attempted on.
errerrno (or Windows error code) to map.
nextOptional chained cause.
fileReported source file of the failure site.
lineReported source line of the failure site.

Returns

A NotFoundError, PermissionError, or PathError describing err.