|
Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
|
Exception hierarchy for Magic class error handling. More...

Files | |
| file | magic_exception.hpp |
| Exception hierarchy for the Magic file identification library. | |
Classes | |
| class | Recognition::MagicException |
| Base exception class for all Magic-related errors. More... | |
| class | Recognition::NullTracker |
| Exception thrown when a shared ProgressTracker is null. More... | |
| class | Recognition::EmptyPath |
| Exception thrown when a path argument is empty. More... | |
| class | Recognition::PathIsNotRegularFile |
| Exception thrown when a path is expected to be a regular file but is not. More... | |
| class | Recognition::PathIsNotDirectory |
| Exception thrown when a path is expected to be a directory but is not. More... | |
| class | Recognition::PathDoesNotExist |
| Exception thrown when a specified path does not exist. More... | |
| class | Recognition::FilesystemError |
| Exception thrown when a filesystem operation fails. More... | |
| class | Recognition::MagicIsClosed |
| Exception thrown when an operation is attempted on a closed Magic instance. More... | |
| class | Recognition::MagicOpenError |
| Exception thrown when Magic::Open() fails. More... | |
| class | Recognition::MagicLoadDatabaseFileError |
| Exception thrown when Magic::LoadDatabaseFile() fails. More... | |
| class | Recognition::MagicDatabaseNotLoaded |
| Exception thrown when file identification is attempted without a loaded database. More... | |
| class | Recognition::MagicIdentifyFileError |
| Exception thrown when file type identification fails. More... | |
| class | Recognition::MagicSetFlagsError |
| Exception thrown when Magic::SetFlags() fails. More... | |
| class | Recognition::MagicSetParameterError |
| Exception thrown when Magic::SetParameter() fails. More... | |
Exception hierarchy for Magic class error handling.
All exceptions thrown by the Magic class derive from MagicException, allowing catch-all handling while also supporting specific error handling.