Exception: KBSecret::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.



17
18
19
# File 'lib/kbsecret/exceptions.rb', line 17

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