Line data Source code
1 : // Copyright (c) 2011-2022 Made to Order Software Corp. All Rights Reserved
2 : //
3 : // https://snapwebsites.org/project/edhttp
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 :
20 : // libexcept
21 : //
22 : #include <libexcept/exception.h>
23 :
24 :
25 :
26 : namespace edhttp
27 : {
28 :
29 :
30 :
31 0 : DECLARE_LOGIC_ERROR(edhttp_client_server_logic_error);
32 :
33 0 : DECLARE_OUT_OF_RANGE(edhttp_uri_exception_out_of_range);
34 :
35 4 : DECLARE_MAIN_EXCEPTION(edhttp_exception);
36 :
37 4 : DECLARE_EXCEPTION(edhttp_exception, unquotable_string);
38 :
39 0 : DECLARE_EXCEPTION(edhttp_exception, cookie_parse_exception);
40 :
41 0 : DECLARE_EXCEPTION(edhttp_exception, uri_exception_invalid_uri);
42 0 : DECLARE_EXCEPTION(edhttp_exception, uri_exception_invalid_parameter);
43 0 : DECLARE_EXCEPTION(edhttp_exception, uri_exception_invalid_path);
44 0 : DECLARE_EXCEPTION(edhttp_exception, uri_exception_exclusive_parameters);
45 :
46 0 : DECLARE_EXCEPTION(edhttp_exception, link_parse_exception);
47 0 : DECLARE_EXCEPTION(edhttp_exception, link_parameter_exception);
48 :
49 : DECLARE_EXCEPTION(edhttp_exception, client_server_error);
50 : DECLARE_EXCEPTION(edhttp_exception, client_request_mixed_port_or_hostname);
51 0 : DECLARE_EXCEPTION(edhttp_exception, client_no_addresses);
52 0 : DECLARE_EXCEPTION(edhttp_exception, client_io_error);
53 :
54 0 : DECLARE_EXCEPTION(edhttp_exception, mime_type_no_magic);
55 :
56 :
57 :
58 : } // namespace edhttp
59 : // vim: ts=4 sw=4 et
|