Exception: ClusterId::InvalidByteLengthError

Inherits:
Error
  • Object
show all
Defined in:
lib/clusterid/errors.rb

Overview

An error representing an invalid byte length for a value.

Instance Method Summary collapse

Constructor Details

#initialize(length) ⇒ InvalidByteLengthError

Returns a new instance of InvalidByteLengthError.

Parameters:

  • length (Integer)

    the byte length considered invalid



10
11
12
# File 'lib/clusterid/errors.rb', line 10

def initialize(length)
  super("Expected #{BYTE_SIZE} bytes, got #{length}")
end