Exception: KBSecret::RecordCreationArityError

Inherits:
RuntimeError
  • 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.



8
9
10
# File 'lib/kbsecret/exceptions.rb', line 8

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