Jerboa v0.2.0 Jerboa.Format.First2BitsError exception

Error indicating wrong value encoded in first two bits of STUN message

A STUN message header must start with two zero (clear) bits. If it doesn’t this error is produced when decoding the message.

Exception struct fields:

  • :bits - a 2 bit long bitstring with the value of first two bits of a 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.