_rethrowMapped

private fnvoid _rethrowMapped(string op, string p, Throwable ex, string file = __FILE__, size_t line = __LINE__)

Re-throw a filesystem exception mapped into the PathError hierarchy.

Parameters

opOperation name for the message.
pPath the operation was attempted on.
exOriginal exception carrying an errno/Windows error code.
fileReported source file of the failure site.
lineReported source line of the failure site.

Throws

NotFoundError, PermissionError, or PathError wrapping ex.