Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
Loading...
Searching...
No Matches
Recognition::MagicOpenError Class Referencefinal

Exception thrown when Magic::Open() fails. More...

#include <magic_exception.hpp>

Inheritance diagram for Recognition::MagicOpenError:
Collaboration diagram for Recognition::MagicOpenError:

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.

Detailed Description

Exception thrown when Magic::Open() fails.

This exception indicates that the underlying magic library could not be initialized, typically due to memory allocation failures.

See also
Magic::Open()
Since
10.0.0

Constructor & Destructor Documentation

◆ MagicOpenError()

Recognition::MagicOpenError::MagicOpenError ( const std::string & error_message)
inlineexplicit

Construct MagicOpenError with error description.

Parameters
[in]error_messageDescription of why opening failed.
Since
10.0.0

The documentation for this class was generated from the following file: