10 #ifndef __PMDEXCEPTIONS_H__ 11 #define __PMDEXCEPTIONS_H__ 15 #include <boost/format.hpp> 17 #include <librevenge/librevenge.h> 37 m_recordType(recordType)
41 :
PMDParseException((boost::format(
"Record of type %d not found at seqNum %d") % recordType % seqNum).str()),
42 m_recordType(recordType)
51 :
PMDParseException((boost::format(
"Corrupt record: %d\nError message: %s\n") % recordType % message).str()),
52 m_recordType(recordType)
65 :
PMDParseException((boost::format(
"Tried to parse record %d of unknown size.\n") % recordType).str()),
66 m_recordType(recordType)
PMDParseException(const std::string &message)
Definition: PMDExceptions.h:25
uint16_t m_recordType
Definition: PMDExceptions.h:33
std::string m_message
Definition: PMDExceptions.h:24
RecordNotFoundException(uint16_t recordType, uint16_t seqNum)
Definition: PMDExceptions.h:40
RecordNotFoundException(uint16_t recordType)
Definition: PMDExceptions.h:35
UnknownRecordSizeException(uint16_t recordType)
Definition: PMDExceptions.h:64
Definition: PMDExceptions.h:31
uint16_t m_recordType
Definition: PMDExceptions.h:62
Definition: PMDExceptions.h:56
Definition: PMDExceptions.h:46
Definition: PMDExceptions.h:22
uint16_t m_recordType
Definition: PMDExceptions.h:48
virtual ~PMDParseException()
Definition: PMDExceptions.h:28
Definition: geometry.h:22
Definition: PMDExceptions.h:60
CorruptRecordException(uint16_t recordType, const std::string &message)
Definition: PMDExceptions.h:50