Exception: Aeternitas::Errors::SourceDataNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aeternitas/errors.rb

Overview

Raised when a source entry does not exist.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fingerprint) ⇒ SourceDataNotFound

Create a new Exception

Parameters:

  • fingerprint (String)

    the sources fingerprint



42
43
44
45
# File 'lib/aeternitas/errors.rb', line 42

def initialize(fingerprint)
  @fingerprint = fingerprint
  super("The source entry with fingerprint '#{fingerprint}' does not exist!")
end

Instance Attribute Details

#fingerprintObject (readonly)

the sources fingerprint



37
38
39
40
41
42
43
44
45
46
# File 'lib/aeternitas/errors.rb', line 37

class SourceDataNotFound < StandardError
  attr_reader :fingerprint

  # Create a new Exception
  # @param [String] fingerprint the sources fingerprint
  def initialize(fingerprint)
    @fingerprint = fingerprint
    super("The source entry with fingerprint '#{fingerprint}' does not exist!")
  end
end