basic-xml 1.0.1
Very basic loader/writer of XML tags with attributes and content.
exception.h
Go to the documentation of this file.
1// Copyright (c) 2019-2024 Made to Order Software Corp. All Rights Reserved
2//
3// https://snapwebsites.org/project/prinbee
4// contact@m2osw.com
5//
6// This program is free software: you can redistribute it and/or modify
7// it under the terms of the GNU General Public License as published by
8// the Free Software Foundation, either version 3 of the License, or
9// (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program. If not, see <https://www.gnu.org/licenses/>.
18#pragma once
19
32// libexcept
33//
34#include <libexcept/exception.h>
35
36
37namespace basic_xml
38{
39
40
41
42DECLARE_LOGIC_ERROR(logic_error);
43
44DECLARE_OUT_OF_RANGE(out_of_range);
45
46DECLARE_MAIN_EXCEPTION(xml_error);
47
48DECLARE_EXCEPTION(xml_error, file_not_found);
49DECLARE_EXCEPTION(xml_error, invalid_entity);
50DECLARE_EXCEPTION(xml_error, invalid_number);
51DECLARE_EXCEPTION(xml_error, invalid_token);
52DECLARE_EXCEPTION(xml_error, invalid_xml);
53DECLARE_EXCEPTION(xml_error, node_already_in_tree);
54DECLARE_EXCEPTION(xml_error, node_is_root);
55DECLARE_EXCEPTION(xml_error, unexpected_eof);
56DECLARE_EXCEPTION(xml_error, unexpected_token);
57
58
59
60} // namespace basic_xml
61// vim: ts=4 sw=4 et

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.