Jerboa v0.2.0 Jerboa.Format.MagicCookieError exception

Error indicating that the message does not encode the magic cookie value

The second 4 bytes of each STUN message header have a fixed value of 0x2112A442 otherwise the message can’t be identified as a STUN message and this error is produced.

Exception struct fields:

  • :header - whole 20 byte header of invalid 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.