Loading...
Searching...
No Matches
Public Member Functions |
Protected Member Functions |
Protected Attributes |
Private Member Functions |
List of all members
system_error Class Reference
Inheritance diagram for system_error:
![]()
Detailed DescriptionAn error returned by an operating system or a language runtime, for example a file opening error. Constructor & Destructor Documentation◆ system_error() [1/4]
◆ system_error() [2/4]
template<typename... Args>
\rst Constructs a :class: Example**:: This throws a system_error with the description cannot open file 'madeup': No such file or directory or similar (system message may vary). const char *filename = "madeup"; std::FILE *file = std::fopen(filename, "r"); if (!file) throw fmt::system_error(errno, "cannot open file '{}'", filename); \endrst Definition at line 2731 of file format.h. References make_format_args(). ◆ system_error() [3/4]
◆ system_error() [4/4]
◆ ~system_error()
Member Function Documentation◆ error_code()
◆ init()
Definition at line 233 of file format-inl.h. References format_system_error(), to_string(), and vformat(). ◆ operator=() [1/2]
◆ operator=() [2/2]
Member Data Documentation◆ error_code_
|