Jerboa v0.2.0 Jerboa.Format.Nonce.LengthError exception

Error indicating that NONCE attribute’s value has invalid length

STUN RFC requires that NONCE attribute’s value must be maximum 128 UTF-8 encoded characters long, so any longer value results in this error.

Exception struct fields:

  • :length - length of attribute’s value found in STUN message (number of UTF-8 encoded characters)

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.