Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
system-error.hh File Reference

Errors from the operating system: SystemError, and its subclasses for the native error codes, SysError for errno and windows::WinError for GetLastError(), and NativeSysError for whichever of those is native. More...

#include "nix/util/error.hh"
#include <cerrno>
#include <concepts>
#include <cstring>
#include <string>
#include <string_view>
#include <system_error>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  nix::SystemError
struct  nix::SystemError::DisambigHintFmt
struct  nix::SystemError::DisambigVarArgs
class  nix::NativeCodeSystemError< Fields, field >
struct  nix::SysErrorFields
class  nix::SysError

Typedefs

using nix::NativeSysError
using nix::NativeError = NativeSysError::NativeCode

Detailed Description

Errors from the operating system: SystemError, and its subclasses for the native error codes, SysError for errno and windows::WinError for GetLastError(), and NativeSysError for whichever of those is native.

Typedef Documentation

◆ NativeError

using nix::NativeError = NativeSysError::NativeCode

The native error code that NativeSysError is for: an errno value on Unix, and a GetLastError() value on Windows.

◆ NativeSysError

Initial value:
Definition system-error.hh:283

Convenience alias for when we use a errno-based error handling function on Unix, and GetLastError()-based error handling on on Windows.