Exception thrown for file I/O errors.
Constructor which takes an error message.
Constructor which takes the error number ($(LUCKY GetLastError) in Windows, errno in POSIX).
OS error code.
import std.exception : assertThrown; assertThrown!FileException("non.existing.file.".readText);
See Implementation
Exception thrown for file I/O errors.