Exception: KBSecret::Exceptions::RecordLoadError

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

Overview

Raised during record loading if a particular file can't be loaded

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ RecordLoadError

Returns a new instance of RecordLoadError.

Parameters:

  • path (String)

    the path to the record



13
14
15
16
# File 'lib/kbsecret/exceptions.rb', line 13

def initialize(path)
  base = File.basename(path)
  super "Failed to load record in file: '#{base}'"
end