Class: ThreeScale::Core::APIClient::JSONError

Inherits:
Error
  • Object
show all
Defined in:
lib/3scale/core/api_client/resource.rb

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ JSONError

Returns a new instance of JSONError.



33
34
35
36
# File 'lib/3scale/core/api_client/resource.rb', line 33

def initialize(error)
  msg = error.respond_to?(:message) ? error.message : error
  super "#{self.class}: #{msg[0,512]}"
end