Exception: ClusterId::InvalidByteLengthError
- Defined in:
- lib/clusterid/errors.rb
Overview
An error representing an invalid byte length for a value.
Instance Method Summary collapse
-
#initialize(length) ⇒ InvalidByteLengthError
constructor
A new instance of InvalidByteLengthError.
Constructor Details
#initialize(length) ⇒ InvalidByteLengthError
Returns a new instance of InvalidByteLengthError.
10 11 12 |
# File 'lib/clusterid/errors.rb', line 10 def initialize(length) super("Expected #{BYTE_SIZE} bytes, got #{length}") end |