Tag Parser: exceptions.h File Reference

Tag Parser 12.5.3 C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags

Loading...
Searching...
No Matches
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
| The class inherits from std::exception and serves as base class for exceptions thrown by the elements of the Media namespace. More...
class | TagParser::NoDataFoundException
| The exception that is thrown when the data to be parsed holds no parsable information (e.g. More...
class | TagParser::InvalidDataException
| The exception that is thrown when the data to be parsed or to be made seems invalid and therefore can not be parsed. More...
class | TagParser::NoDataProvidedException
| The exception that is thrown when the value to be written is empty but that is not allowed in that context (e.g. More...
class | TagParser::TruncatedDataException
| The exception that is thrown when the data to be parsed is truncated and therefore can not be parsed at all. More...
class | TagParser::OperationAbortedException
| The exception that is thrown when an operation has been stopped and thus not successfully completed because it has been aborted. More...
class | TagParser::VersionNotSupportedException
| The exception that is thrown when an operation fails because the detected or specified version is not supported by the implementation. More...
class | TagParser::NotImplementedException
| This exception is thrown when the an operation is invoked that has not been implemented yet. More...

## Namespaces
namespace | TagParser
| Contains all classes and functions of the TagInfo library.

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

## 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 70 of file exceptions.h.