Jerboa v0.2.0 Jerboa.Format.XORAddress.IPArityError exception

Error indicating that the IP address family and IP address length of the XOR-MAPPED-ADDRESS, XOR-PEER-ADDRESS or XOR-RELAYED-ADDRESS attributes don’t make sense

For example: the IP address family value may be 0x01 (IPv4) while the length of an address is 16 bytes, as in IPv6.

Exception struct fields:

  • :family - the IP address family given in the XOR-*-ADDRESS attribute (either <<0x01>> or <<0x02>>)

Summary

Functions

Callback implementation for Exception.exception/1

Callback implementation for Exception.message/1

Functions

exception(msg)
exception(String.t) :: Exception.t
exception(Keyword.t) :: Exception.t

Callback implementation for Exception.exception/1.

message(exception)
message(Exception.t) :: String.t

Callback implementation for Exception.message/1.