// // 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 #include #include 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 #endif