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 lib
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_bounds);
34 :
35 0 : DECLARE_MAIN_EXCEPTION(edhttp_exception);
36 :
37 0 : DECLARE_EXCEPTION(edhttp_exception, cookie_parse_exception);
38 :
39 0 : DECLARE_EXCEPTION(edhttp_exception, uri_exception_invalid_uri);
40 0 : DECLARE_EXCEPTION(edhttp_exception, uri_exception_invalid_parameter);
41 0 : DECLARE_EXCEPTION(edhttp_exception, uri_exception_invalid_path);
42 0 : DECLARE_EXCEPTION(edhttp_exception, uri_exception_exclusive_parameters);
43 :
44 : DECLARE_EXCEPTION(edhttp_exception, link_parse_exception);
45 : DECLARE_EXCEPTION(edhttp_exception, link_parameter_exception);
46 :
47 : DECLARE_EXCEPTION(edhttp_exception, client_server_error);
48 : DECLARE_EXCEPTION(edhttp_exception, client_request_mixed_port_or_hostname);
49 0 : DECLARE_EXCEPTION(edhttp_exception, client_no_addresses);
50 0 : DECLARE_EXCEPTION(edhttp_exception, client_io_error);
51 :
52 0 : DECLARE_EXCEPTION(edhttp_exception, mime_type_no_magic);
53 :
54 :
55 :
56 : } // namespace edhttp
57 : // vim: ts=4 sw=4 et
|