Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
Mads::BagError Class Reference

Error thrown by BagWriter/BagReader for any I/O or format problem (bad magic, unsupported format_ver, unreadable/unwritable file, ...). More...

#include <bag.hpp>

Inheritance diagram for Mads::BagError:

Public Member Functions

 BagError (const std::string &msg)
 

Detailed Description

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).

Definition at line 103 of file bag.hpp.

Constructor & Destructor Documentation

◆ BagError()

Mads::BagError::BagError ( const std::string &  msg)
inlineexplicit

Definition at line 105 of file bag.hpp.


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