|
ipaddress 1.2.0
|
Exception for errors encountered during IP address parsing. More...
#include <errors.hpp>
Public Member Functions | |
| template<typename FirstArg , typename... Args> | |
| parse_error (error_code code, const FirstArg &arg, const Args &... args) | |
| Constructs a parsing error with a code and a concatenated message from multiple arguments. | |
| parse_error (error_code code, const std::string &message) | |
| Constructs a parsing error with a code and a message string. | |
| parse_error (error_code code, const char *message) | |
| Constructs a parsing error with a code and a message C-string. | |
| error_code | code () const noexcept |
| Returns the error code associated with this error. | |
Exception for errors encountered during IP address parsing.
This exception is thrown when the library encounters an error while attempting to parse an IP address or network from a string. It is a specialized form of the error class that provides context specific to parsing operations.
|
inlineexplicit |
Constructs a parsing error with a code and a concatenated message from multiple arguments.
| FirstArg | The type of the first argument passed to the constructor. |
| Args | The types of the additional arguments passed to the constructor. |
| [in] | code | The error code associated with the parsing exception. |
| [in] | arg | The first argument describing the error. |
| [in] | args | Additional arguments describing the error. |
|
inlineexplicit |
Constructs a parsing error with a code and a message string.
| [in] | code | The error code associated with the parsing exception. |
| [in] | message | A detailed description of the parsing error. |
|
inlineexplicit |
Constructs a parsing error with a code and a message C-string.
| [in] | code | The error code associated with the parsing exception. |
| [in] | message | A detailed description of the parsing error. |
|
inlinenodiscardnoexceptinherited |
Returns the error code associated with this error.