10 #ifndef __PMDEXCEPTIONS_H__
11 #define __PMDEXCEPTIONS_H__
14 #include <librevenge/librevenge.h>
15 #include <boost/format.hpp>
34 m_recordType(recordType)
38 :
PMDParseException((boost::format(
"Record of type %d not found at seqNum %d") % recordType % seqNum).str()),
39 m_recordType(recordType)
48 :
PMDParseException((boost::format(
"Corrupt record: %d\nError message: %s\n") % recordType % message).str()),
49 m_recordType(recordType)
62 :
PMDParseException((boost::format(
"Tried to parse record %d of unknown size.\n") % recordType).str()),
63 m_recordType(recordType)
PMDParseException(const std::string &message)
Definition: PMDExceptions.h:22
uint16_t m_recordType
Definition: PMDExceptions.h:30
std::string m_message
Definition: PMDExceptions.h:21
RecordNotFoundException(uint16_t recordType, uint16_t seqNum)
Definition: PMDExceptions.h:37
RecordNotFoundException(uint16_t recordType)
Definition: PMDExceptions.h:32
UnknownRecordSizeException(uint16_t recordType)
Definition: PMDExceptions.h:61
Definition: PMDExceptions.h:28
uint16_t m_recordType
Definition: PMDExceptions.h:59
Definition: PMDExceptions.h:53
Definition: PMDExceptions.h:43
Definition: PMDExceptions.h:19
uint16_t m_recordType
Definition: PMDExceptions.h:45
virtual ~PMDParseException()
Definition: PMDExceptions.h:25
Definition: geometry.h:20
Definition: PMDExceptions.h:57
CorruptRecordException(uint16_t recordType, const std::string &message)
Definition: PMDExceptions.h:47