...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Error codes returned when using rules.
Defined in header <boost/url/grammar/error.hpp>
enum error
Name |
Description |
---|---|
|
More input is needed to match the rule. A rule reached the end of the input, resulting in a partial match. The error is recoverable; the caller may obtain more input if possible and attempt to parse the character buffer again. Custom rules should only return this error if it is completely unambiguous that the rule cannot be matched without more input. |
|
The rule did not match the input. This error is returned when a rule fails to match the input. The error is recoverable; the caller may rewind the input pointer and attempt to parse again using a different rule. |
|
A rule reached the end of a range.
This indicates that the input was consumed when parsing a |
|
Leftover input remaining after match. |
|
A rule encountered unrecoverable invalid input. This error is returned when input is matching but one of the requirements is violated. For example if a percent escape is found, but one or both characters that follow are not valid hexadecimal digits. This is usually an unrecoverable error. |
|
An integer overflowed during parsing. |
|
An unspecified syntax error was found. |
Convenience header <boost/url/grammar.hpp>