View source code
Display the source code in std/file.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
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.

std.file.FileException.this - multiple declarations

Function FileException.this

Constructor which takes an error message.

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).

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

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

this (
  in char[] name,
  uint errno = .GetLastError(),
  string file = __FILE__,
  size_t line = __LINE__
) @safe;

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.