Exception: KBSecret::Exceptions::SessionImportError

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

Overview

Raised during record import if the source is the same as the destination.

Instance Method Summary collapse

Constructor Details

#initialize(session) ⇒ SessionImportError

Returns a new instance of SessionImportError.

Parameters:

  • session (Session)

    the session being imported into



64
65
66
# File 'lib/kbsecret/exceptions.rb', line 64

def initialize(session)
  super "Session '#{session.label}' cannot import records from itself"
end