ipaddress 1.1.0
|
Exception for logical errors in IP address operations. More...
#include <errors.hpp>
Public Member Functions | |
template<typename FirstArg , typename... Args> | |
logic_error (error_code code, const FirstArg &arg, const Args &... args) | |
Constructs a logic error with a code and a concatenated message from multiple arguments. | |
logic_error (error_code code, const std::string &message) | |
Constructs a logic error with a code and a message string. | |
logic_error (error_code code, const char *message) | |
Constructs a logic error with a code and a message C-string. | |
error_code | code () const noexcept |
Returns the error code associated with this error. | |
Exception for logical errors in IP address operations.
This exception is thrown for logical errors that do not pertain directly to parsing, such as using an incorrect prefix length or other operations that violate the logic of IP address manipulation. It extends the error
class to provide additional context for these types of logical issues.
|
inlineexplicit |
Constructs a logic 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 logical exception. |
[in] | arg | The first argument describing the error. |
[in] | args | Additional arguments describing the error. |
|
inlineexplicit |
Constructs a logic error with a code and a message string.
[in] | code | The error code associated with the logical exception. |
[in] | message | A detailed description of the logical error. |
|
inlineexplicit |
Constructs a logic error with a code and a message C-string.
[in] | code | The error code associated with the logical exception. |
[in] | message | A detailed description of the logical error. |
|
inlinenoexceptinherited |
Returns the error code associated with this error.