The OpenD Programming Language

FileException

Exception thrown for file I/O errors.

Constructors

this
this(const(char)[] name, const(char)[] msg, string file, size_t line)

Constructor which takes an error message.

this
this(const(char)[] name, uint errno, string file, size_t line)

Constructor which takes the error number ($(LUCKY GetLastError) in Windows, errno in POSIX).

Members

Variables

errno
uint errno;

OS error code.

Examples

import std.exception : assertThrown;

assertThrown!FileException("non.existing.file.".readText);

Meta