0b6a182c
Hu Chunming
添加无鉴权注册和注销
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
//
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/url
//
#ifndef BOOST_URL_ERROR_HPP
#define BOOST_URL_ERROR_HPP
#include <boost/url/detail/config.hpp>
#include <boost/url/error_types.hpp>
#include <stdexcept>
namespace boost {
namespace urls {
/** Error codes returned the library
*/
enum class error
{
// VFALCO 3 space indent or
// else Doxygen malfunctions
/**
* The operation completed successfully.
*/
success = 0,
/**
* Null encountered in pct-encoded.
*/
illegal_null,
/**
* Illegal reserved character in encoded string.
*/
illegal_reserved_char,
/**
* A grammar element was not in canonical form.
*/
non_canonical,
//--------------------------------------------
/**
* Bad hexadecimal digit.
This error condition is fatal.
*/
bad_pct_hexdig,
/**
* The percent-encoded sequence is incomplete.
This error condition is fatal.
*/
incomplete_encoding,
/**
* Missing hexadecimal digit.
This error condition is fatal.
*/
missing_pct_hexdig,
/**
* No space in output buffer
This error is returned when a provided
output buffer was too small to hold
the complete result of an algorithm.
*/
no_space,
/**
* The URL is not a base URL
*/
not_a_base
};
} // urls
} // boost
#include <boost/url/impl/error.hpp>
#endif
|