Exception: Dolly::BulkError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Dolly::BulkError
- Defined in:
- lib/dolly/exceptions.rb
Instance Method Summary collapse
Instance Method Details
#intialize(error:, reason:, obj:) ⇒ Object
29 30 31 32 33 |
# File 'lib/dolly/exceptions.rb', line 29 def intialize(error:, reason:, obj:) @error = error @reason = reason @obj = obj end |
#to_s ⇒ Object
35 36 37 |
# File 'lib/dolly/exceptions.rb', line 35 def to_s "#{@error} on #{@obj} because #{@reason}." end |