Exception: XxxRename::Integrations::StashAPIError
- Inherits:
-
StandardError
- Object
- StandardError
- XxxRename::Integrations::StashAPIError
- Defined in:
- lib/xxx_rename/integrations/stash_app.rb
Instance Method Summary collapse
-
#initialize(errors) ⇒ StashAPIError
constructor
A new instance of StashAPIError.
- #message ⇒ Object
Constructor Details
#initialize(errors) ⇒ StashAPIError
Returns a new instance of StashAPIError.
12 13 14 15 |
# File 'lib/xxx_rename/integrations/stash_app.rb', line 12 def initialize(errors) @errors = errors super() end |
Instance Method Details
#message ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/xxx_rename/integrations/stash_app.rb', line 17 def msg = "Stash API returned error:\n" @errors.each do |e| s = "\tMESSAGE #{e["message"]}\n" s += "\tOPERATION #{e["path"]} \n" msg += s end msg end |