Class: ThreeScale::Core::APIClient::JSONError
- Defined in:
- lib/3scale/core/api_client/resource.rb
Instance Method Summary collapse
-
#initialize(error) ⇒ JSONError
constructor
A new instance of JSONError.
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. : error super "#{self.class}: #{msg[0,512]}" end |