libmpd++
DASH MPD parsing and manipulation library
 
Loading...
Searching...
No Matches
exceptions.hh
Go to the documentation of this file.
1#ifndef _BBC_PARSE_DASH_MPD_EXCEPTIONS_HH_
2#define _BBC_PARSE_DASH_MPD_EXCEPTIONS_HH_
3/*****************************************************************************
4 * DASH MPD parsing library in C++: common library exceptions
5 *****************************************************************************
6 * Copyright: (C) 2025 British Broadcasting Corporation
7 * Author(s): David Waring <david.waring2@bbc.co.uk>
8 * License: LGPLv3
9 *
10 * For full license terms please see the LICENSE file distributed with this
11 * library or refer to: https://www.gnu.org/licenses/lgpl-3.0.txt.
12 */
13#include <exception>
14
15#include "macros.hh"
16
18
24class LIBMPDPP_PUBLIC_API ParseError : public std::runtime_error {
25public:
26 using std::runtime_error::runtime_error;
27 using std::runtime_error::operator=;
28
29 virtual ~ParseError() = default;
30};
31
38class LIBMPDPP_PUBLIC_API InvalidMPD : public std::runtime_error {
39public:
40 using std::runtime_error::runtime_error;
41 using std::runtime_error::operator=;
42
43 virtual ~InvalidMPD() = default;
44};
45
51class LIBMPDPP_PUBLIC_API RangeError : public std::runtime_error {
52public:
53 using std::runtime_error::runtime_error;
54 using std::runtime_error::operator=;
55
56 virtual ~RangeError() = default;
57};
58
60
61/* vim:ts=8:sts=4:sw=4:expandtab:
62 */
63#endif /*_BBC_PARSE_DASH_MPD_EXCEPTIONS_HH_*/
Definition exceptions.hh:38
virtual ~InvalidMPD()=default
Definition exceptions.hh:24
virtual ~ParseError()=default
Definition exceptions.hh:51
virtual ~RangeError()=default
#define LIBMPDPP_NAMESPACE_END
Definition macros.hh:54
#define LIBMPDPP_PUBLIC_API
Used to mark something as part of the public API.
Definition macros.hh:21
#define LIBMPDPP_NAMESPACE_BEGIN
Definition macros.hh:50