123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- //
- // Copyright (c) 2019 Vinnie Falco ([email protected])
- //
- // 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
|