Class: Swivel::Error

Inherits:
Response show all
Defined in:
lib/swivel.rb

Instance Attribute Summary

Attributes inherited from Response

#disable_auto_refresh, #hash_doc, #refreshed_at

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Response

#[], #id, #initialize, #method_missing, #to_param, #to_s, #to_xml

Constructor Details

This class inherits a constructor from Swivel::Response

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Swivel::Response

Class Method Details

.resourceObject



620
621
622
# File 'lib/swivel.rb', line 620

def self.resource
  'error'
end

Instance Method Details

#raiseObject



623
624
625
626
627
628
# File 'lib/swivel.rb', line 623

def raise
  trace = caller
  trace = backtrace.split("\n") + trace  if backtrace

  super ApiError, message, trace
end