FileException.this

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

  1. this(const(char)[] name, const(char)[] msg, string file, size_t line)
  2. this(const(char)[] name, uint errno, string file, size_t line)
    class FileException
    version(Windows)
    @safe
    this
    (
    scope const(char)[] name
    ,
    uint errno = .GetLastError()
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )

Parameters

name const(char)[]

Name of file for which the error occurred.

errno uint

The error number.

file string

The file where the error occurred. Defaults to __FILE__.

line size_t

The line where the error occurred. Defaults to __LINE__.

Meta