4#ifndef MAGIC_EXCEPTION_HPP
5#define MAGIC_EXCEPTION_HPP
26 : std::runtime_error{error}
39 function +
" failed." :
40 function +
" failed with " + error +
"."
Definition magic_exception.hpp:45
empty_path()
Definition magic_exception.hpp:47
Definition magic_exception.hpp:52
invalid_path()
Definition magic_exception.hpp:54
The base class for all exceptions thrown by the magic class.
Definition magic_exception.hpp:17
magic_exception(const std::string &error)
Construct magic_exception with an error message.
Definition magic_exception.hpp:25
magic_exception(const std::string &function, const std::string &error)
Construct magic_exception with an error message and the name of the funtion where the error occurred.
Definition magic_exception.hpp:36
Definition magic_exception.hpp:80
magic_file_error(const std::string &error, const std::string &file_path)
Definition magic_exception.hpp:82
Definition magic_exception.hpp:59
magic_is_closed()
Definition magic_exception.hpp:61
Definition magic_exception.hpp:73
magic_load_error(const std::string &error, const std::string &database_file_path)
Definition magic_exception.hpp:75
Definition magic_exception.hpp:66
magic_open_error(const std::string &error)
Definition magic_exception.hpp:68
Definition magic_exception.hpp:87
magic_set_flags_error(const std::string &error, const std::string &flag_names)
Definition magic_exception.hpp:89
Definition magic_exception.hpp:94
magic_set_param_error(const std::string &error, const std::string ¶meter_name, std::size_t value)
Definition magic_exception.hpp:96
std::string to_string(const magic::types_of_files_t &types_of_files, const std::string &type_separator=" -> ", const std::string &file_separator="\n")
Convert the magic::types_of_files_t to string.
Definition magic.cpp:382