Exception: SaveQueue::FailedSaveError
- Defined in:
- lib/save_queue/exceptions.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context_hash) ⇒ FailedSaveError
constructor
A new instance of FailedSaveError.
- #to_s ⇒ Object
Constructor Details
#initialize(context_hash) ⇒ FailedSaveError
Returns a new instance of FailedSaveError.
6 7 8 |
# File 'lib/save_queue/exceptions.rb', line 6 def initialize(context_hash) @context = context_hash end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
4 5 6 |
# File 'lib/save_queue/exceptions.rb', line 4 def context @context end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/save_queue/exceptions.rb', line 10 def to_s "#{super}: " + @context.to_s end |