Exception: KBSecret::Exceptions::RecordCreationArityError

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

Overview

Raised during record creation if too many/few arguments are given.

Instance Method Summary collapse

Constructor Details

#initialize(exp, act) ⇒ RecordCreationArityError

Returns a new instance of RecordCreationArityError.



27
28
29
# File 'lib/kbsecret/exceptions.rb', line 27

def initialize(exp, act)
  super "Needed #{exp} arguments for this record, got #{act}"
end