Roboruka
Knihovna pro obsluhu RoboRuky.
Veřejné metody | Seznam všech členů
Dokumentace třídy system_error

#include <format.h>

Diagram dědičnosti pro třídu system_error:

Veřejné metody

template<typename... Args>
 system_error (int error_code, string_view message, const Args &... args)
 

Detailní popis

An error returned by an operating system or a language runtime, for example a file opening error.

Dokumentace konstruktoru a destruktoru

◆ system_error()

template<typename... Args>
system_error::system_error ( int  error_code,
string_view  message,
const Args &...  args 
)
inline

\rst Constructs a :class:fmt::system_error object with a description formatted with fmt::format_system_error. message and additional arguments passed into the constructor are formatted similarly to fmt::format.

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


Dokumentace pro tuto třídu byla vygenerována z následujících souborů: