Exception: Emendate::DerivedSegmentError

Inherits:
StandardError
  • Object
show all
Includes:
Module.new
Defined in:
lib/emendate/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sources, message) ⇒ DerivedSegmentError

Returns a new instance of DerivedSegmentError.



24
25
26
27
28
# File 'lib/emendate/errors.rb', line 24

def initialize(sources, message)
  @sources = sources
  m = "With sources: #{sources.type_string}: #{message}"
  super(m)
end

Instance Attribute Details

#sourcesObject (readonly)

Returns the value of attribute sources.



22
23
24
# File 'lib/emendate/errors.rb', line 22

def sources
  @sources
end