class

Beryl::Encoding::MalformedEncoding

Inherits Beryl::Encoding::Error < Beryl::Error < Exception < Reference < Object

Raised when bytes are not the strict encoding they claim to be: a length that runs past the input, a non-minimal integer, an indefinite length, a malformed time. The message names the rule and the byte offset.

Constructors

new(reason : String, offset : Int32 = 0)
Source

Instance methods

offset

The offset, from the start of the input handed to the reader, of the element that broke the rule.

Source