Tag Parser  7.0.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Classes | Namespaces | Macros
exceptions.h File Reference
#include "./global.h"
#include <stdexcept>
#include <string>
Include dependency graph for exceptions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TagParser::Failure
 
class  TagParser::NoDataFoundException
 
class  TagParser::InvalidDataException
 
class  TagParser::TruncatedDataException
 
class  TagParser::OperationAbortedException
 
class  TagParser::VersionNotSupportedException
 
class  TagParser::NotImplementedException
 

Namespaces

 TagParser
 

Macros

#define CHECK_MAX_SIZE(sizeDenotation)
 Throws TruncatedDataException() if the specified sizeDenotation exceeds maxSize; otherwise maxSize is reduced by sizeDenotation. More...
 

Macro Definition Documentation

◆ CHECK_MAX_SIZE

#define CHECK_MAX_SIZE (   sizeDenotation)
Value:
if (maxSize < sizeDenotation) { \
throw TruncatedDataException(); \
} else { \
maxSize -= sizeDenotation; \
}

Throws TruncatedDataException() if the specified sizeDenotation exceeds maxSize; otherwise maxSize is reduced by sizeDenotation.

Definition at line 63 of file exceptions.h.