Exception: Fog::Errors::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fog/core/errors.rb

Direct Known Subclasses

MockNotImplemented, NotFound, Service::Error

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#verboseObject

Returns the value of attribute verbose.



5
6
7
# File 'lib/fog/core/errors.rb', line 5

def verbose
  @verbose
end

Class Method Details

.slurp(error, message = nil) ⇒ Object



7
8
9
10
11
12
# File 'lib/fog/core/errors.rb', line 7

def self.slurp(error, message = nil)
  new_error = new(message)
  new_error.set_backtrace(error.backtrace)
  new_error.verbose = error.message
  new_error
end