Exception: KBSecret::Exceptions::GeneratorLengthError
- Inherits:
-
KBSecretError
- Object
- RuntimeError
- KBSecretError
- KBSecret::Exceptions::GeneratorLengthError
- Defined in:
- lib/kbsecret/exceptions.rb
Overview
Raised during generator creation if a non-positive generator length is requested.
Instance Method Summary collapse
-
#initialize(length) ⇒ GeneratorLengthError
constructor
A new instance of GeneratorLengthError.
Constructor Details
#initialize(length) ⇒ GeneratorLengthError
Returns a new instance of GeneratorLengthError.
88 89 90 |
# File 'lib/kbsecret/exceptions.rb', line 88 def initialize(length) super "Bad secret generator length (#{length}, must be positive)" end |