Jerboa v0.2.0 Jerboa.Format.XORAddress.LengthError exception

Error indicating that the XOR-MAPPED-ADDRESS, XOR-PEER-ADDRESS or XOR-RELAYED-ADDRESS attribute has invalid length

These attributes are encoded into 8 bytes for IPv4 and 20 bytes for IPv6.

Exception struct fields:

  • :length - length of attribute’s value found in the message

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.