![]() |
Mads
Multi-Agent Distributed System
|
Error thrown by BagWriter/BagReader for any I/O or format problem (bad magic, unsupported format_ver, unreadable/unwritable file, ...). More...
#include <bag.hpp>
Public Member Functions | |
| BagError (const std::string &msg) | |
Error thrown by BagWriter/BagReader for any I/O or format problem (bad magic, unsupported format_ver, unreadable/unwritable file, ...).
Bag parsing never relies on exceptions/UB for a merely-truncated file – that is handled by BagReader's linear-scan fallback and truncated(). This exception is reserved for cases that make the file impossible to use at all (missing file, unknown magic, a format_ver from the future).
|
inlineexplicit |