11#include <system_error>
43 int line = __builtin_LINE(),
44 std::string func = __builtin_FUNCTION());
85 const std::string &
name()
const;
131 const std::string &message =
"",
155 const std::string &message =
"",
183 const std::error_category &ecat,
184 const std::string &message =
"",
203 const char *
what() const noexcept override;
libio_error(io_module module, io_error ec, const std::string &message="", source_location loc=source_location::current())
Class constructor.
const char * what() const noexcept override
Provide a string description for this error.
const module_value & module() const
Module object based on io_module.
libio_error(io_module module, std::error_code ec, const std::string &message="", source_location loc=source_location::current())
Class constructor.
libio_error(io_module module, int ev, const std::error_category &ecat, const std::string &message="", source_location loc=source_location::current())
Class constructor.
const source_location & location() const
Exception location.
The module_value class.
Definition libio_error.h:74
io_module value() const
The io_module value.
module_value(io_module module)
The class constructor.
const std::string & name() const
The io_module name.
The source_location class.
Definition libio_error.h:22
int line() const
The source file line.
static source_location current(std::string file=__builtin_FILE(), int line=__builtin_LINE(), std::string func=__builtin_FUNCTION())
Calling this function will gather all info about file, line and function.
std::string function_name() const
The source file function_name.
std::string file_name() const
The source file name.
source_location(std::string file, int line, std::string func)
The class constructor.
module
Enumeration of available logging modules.
Definition log.h:33
IO Modules And Error Codes.
Any entities that belong to the IO library.
io_module
The io_module enum.
Definition io_error_codes.h:17
io_error
The io_error enum.
Definition io_error_codes.h:34