Exception: Xampl::AlreadyKnownToPersister
- Inherits:
-
Exception
- Object
- Exception
- Xampl::AlreadyKnownToPersister
- Defined in:
- lib/xamplr/exceptions.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
-
#xampl ⇒ Object
readonly
Returns the value of attribute xampl.
Instance Method Summary collapse
-
#initialize(xampl, persister) ⇒ AlreadyKnownToPersister
constructor
A new instance of AlreadyKnownToPersister.
- #message ⇒ Object
Constructor Details
#initialize(xampl, persister) ⇒ AlreadyKnownToPersister
Returns a new instance of AlreadyKnownToPersister.
31 32 33 34 |
# File 'lib/xamplr/exceptions.rb', line 31 def initialize(xampl, persister) @xampl = xampl @msg = "#{xampl} #{xampl.get_the_index} is already known by a persister: #{xampl.persister.name}, so cannot use persister #{persister.name}" end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
29 30 31 |
# File 'lib/xamplr/exceptions.rb', line 29 def msg @msg end |
#xampl ⇒ Object (readonly)
Returns the value of attribute xampl.
29 30 31 |
# File 'lib/xamplr/exceptions.rb', line 29 def xampl @xampl end |
Instance Method Details
#message ⇒ Object
36 37 38 |
# File 'lib/xamplr/exceptions.rb', line 36 def @msg end |