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


Public Member Functions | |
| MagicOpenError (const std::string &error_message) | |
| Construct MagicOpenError with error description. | |
| 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 Magic::Open() fails.
This exception indicates that the underlying magic library could not be initialized, typically due to memory allocation failures.
|
inlineexplicit |
Construct MagicOpenError with error description.
| [in] | error_message | Description of why opening failed. |