Jerboa v0.2.0 Jerboa.Format.HeaderLengthError exception

Error indicating STUN message with header of invalid length

STUN messages have a fixed header of 20 bytes, so any message shorter than that will produce this error when passed to Jerboa.Format.decode/1.

Exception struct fields:

  • :binary - whole STUN message which produced this error

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.