Exception: Motion::BadSecretError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(minimum_bytes) ⇒ BadSecretError

Returns a new instance of BadSecretError.



159
160
161
162
163
164
# File 'lib/motion/errors.rb', line 159

def initialize(minimum_bytes)
  super(
    "The secret that you provided is not long enough. It must be at " \
    "least #{minimum_bytes} bytes long."
  )
end

Instance Attribute Details

#minimum_bytesObject (readonly)

Returns the value of attribute minimum_bytes.



157
158
159
# File 'lib/motion/errors.rb', line 157

def minimum_bytes
  @minimum_bytes
end