Exception: TsJsonApi::ApiLimitExceededException

Inherits:
Exception
  • Object
show all
Defined in:
lib/ts_json_api/exceptions.rb

Overview

This exception is thrown when the API limit is exceeded (400 repsonse)

Instance Attribute Summary

Attributes inherited from Exception

#http_code, #message, #rest_client_exception

Instance Method Summary collapse

Methods inherited from Exception

#to_s

Constructor Details

#initialize(*args) ⇒ ApiLimitExceededException

Returns a new instance of ApiLimitExceededException.



27
28
29
30
31
32
# File 'lib/ts_json_api/exceptions.rb', line 27

def initialize(*args)
	options = args.extract_options!
	options.merge! http_code: 400
	super options
	self.message = 'API Limit Exceeded'
end