View source code Display the source code in std/file.d from which this page was generated on github. Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

std.file.file_exception.this - multiple declarations

Function FileException.this

Constructor which takes an error message.

Prototype

this(
  const(char[]) name,
  const(char[]) msg,
  string file = __FILE__,
  ulong line = cast(ulong)__LINE__
) pure @safe;

Parameters

NameDescription
name Name of file for which the error occurred.
msg Message describing the error.
file The file where the error occurred.
line The line where the error occurred.

Function FileException.this

Constructor which takes the error number (GetLastError in Windows, errno in Posix).

Prototype

this(
  const(char[]) name,
  uint errno = cast(uint)errno(),
  string file = __FILE__,
  ulong line = cast(ulong)__LINE__
) @trusted;

Parameters

NameDescription
name Name of file for which the error occurred.
errno The error number.
file The file where the error occurred. Defaults to _FILE__.
line The line where the error occurred. Defaults to _LINE__.

Authors

Walter Bright, Andrei Alexandrescu, Jonathan M Davis

License

Boost License 1.0.

Comments