|
Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
|
Exception thrown when file type identification fails. More...
#include <magic_exception.hpp>


Public Member Functions | |
| MagicIdentifyFileError (const std::string &error_message, const std::string &file_path) | |
| Construct MagicIdentifyFileError with details. | |
| Public Member Functions inherited from Recognition::MagicException | |
| MagicException (const std::string &function, const std::string &error_message) | |
| Construct MagicException with function name and error message. | |
Exception thrown when file type identification fails.
This exception is thrown when the underlying magic library cannot determine the type of a file. The error message includes details from the magic library.
|
inline |
Construct MagicIdentifyFileError with details.
| [in] | error_message | Description of why identification failed. |
| [in] | file_path | Path to the file that could not be identified. |