bad_ip_format¶
-
struct
mikrotik::api::bad_ip_format: public exception¶ The exception thrown if the provided string does not contain a valid IPv4 address.
This exception is thrown by ip_address if the string provided does not fit the requirements of an IPv4 address. Most plausible causes are:
Does not contain all four bytes
Contains non digit values
Contains an inappropriate amount of separator periods
- Since
v1.0.0
Public Functions
-
bad_ip_format(std::string_view faulty_address) noexcept¶ Creates a bad_ip_format exception with the provided ill-formed IPv4 address string
- Since
v1.0.0
- Parameters
faulty_address: The string containing the ill-formed IPv4 address
-
const char *
what() const noexcept override¶ Returns a formatted error message about the error
- Return
A c-string with the error message
- Since
v1.0.0