Exception: KBSecret::Exceptions::GeneratorLengthError

Inherits:
KBSecretError
  • Object
show all
Defined in:
lib/kbsecret/exceptions.rb

Overview

Raised during generator creation if a non-positive generator length is requested.

Instance Method Summary collapse

Constructor Details

#initialize(length) ⇒ GeneratorLengthError

Returns a new instance of GeneratorLengthError.

Parameters:

  • length (Integer)

    the length of the generator



88
89
90
# File 'lib/kbsecret/exceptions.rb', line 88

def initialize(length)
  super "Bad secret generator length (#{length}, must be positive)"
end