Exception: Aeternitas::Errors::SourceDataNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Aeternitas::Errors::SourceDataNotFound
- Defined in:
- lib/aeternitas/errors.rb
Overview
Raised when a source entry does not exist.
Instance Attribute Summary collapse
-
#fingerprint ⇒ Object
readonly
the sources fingerprint.
Instance Method Summary collapse
-
#initialize(fingerprint) ⇒ SourceDataNotFound
constructor
Create a new Exception.
Constructor Details
#initialize(fingerprint) ⇒ SourceDataNotFound
Create a new Exception
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
#fingerprint ⇒ Object (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 |