| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- //
- // 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
|