2
mkvmerge -- utility for splicing together matroska files
3
from component media subtypes
5
Distributed under the GPL v2
6
see the file COPYING for details
7
or visit http://www.gnu.org/copyleft/gpl.html
9
class definition input exceptions
11
Written by Moritz Bunkus <moritz@bunkus.org>.
14
#ifndef MTX_MERGE_INPUT_X_H
15
#define MTX_MERGE_INPUT_X_H
17
#include "common/common_pch.h"
21
class exception: public mtx::exception {
23
virtual const char *what() const throw() {
24
return "unspecified reader error";
28
class open_x: public exception {
30
virtual const char *what() const throw() {
35
class invalid_format_x: public exception {
37
virtual const char *what() const throw() {
38
return "invalid format";
42
class header_parsing_x: public exception {
44
virtual const char *what() const throw() {
45
return "headers could not be parsed or were incomplete";
49
class extended_x: public exception {
51
std::string m_message;
53
extended_x(const std::string &message) : m_message(message) { }
54
extended_x(const boost::format &message): m_message(message.str()) { }
55
virtual ~extended_x() throw() { }
57
virtual const char *what() const throw() {
58
return m_message.c_str();
64
#endif // MTX_MERGE_INPUT_X_H