Exception: KBSecret::Exceptions::RecordOverwriteError

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

Overview

Raised when record creation or import would cause an unintended overwrite.

Instance Method Summary collapse

Constructor Details

#initialize(session, label) ⇒ RecordOverwriteError

Returns a new instance of RecordOverwriteError.

Parameters:

  • session (Session)

    the session being modified

  • label (String)

    the label being overwritten in the session



40
41
42
# File 'lib/kbsecret/exceptions.rb', line 40

def initialize(session, label)
  super "Record '#{label}' already exists in '#{session.label}'"
end