Exception: Xampl::DuplicateXamplInPersister

Inherits:
Exception
  • Object
show all
Defined in:
lib/xamplr/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xampl1, xampl2, persister) ⇒ DuplicateXamplInPersister

Returns a new instance of DuplicateXamplInPersister.



19
20
21
# File 'lib/xamplr/exceptions.rb', line 19

def initialize(xampl1, xampl2, persister)
  @msg = "index: '#{ xampl1.get_the_index }', persister: #{ persister.name }, first: #{ xampl1 }, second: #{ xampl2 }"
end

Instance Attribute Details

#msgObject (readonly)

Returns the value of attribute msg.



17
18
19
# File 'lib/xamplr/exceptions.rb', line 17

def msg
  @msg
end

Instance Method Details

#messageObject



23
24
25
# File 'lib/xamplr/exceptions.rb', line 23

def message
  @msg
end