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.

Parameters:

  • exp (Integer)

    the number of expected arguments

  • act (Integer)

    the number of actual arguments



31
32
33
# File 'lib/kbsecret/exceptions.rb', line 31

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