Exception: ZuoraAPI::Exceptions::ZuoraAPIRequestLimit
- Defined in:
- lib/zuora_api/exceptions.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#default_message ⇒ Object
writeonly
Sets the attribute default_message.
-
#logged ⇒ Object
Returns the value of attribute logged.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIRequestLimit
constructor
A new instance of ZuoraAPIRequestLimit.
- #to_s ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIRequestLimit
Returns a new instance of ZuoraAPIRequestLimit.
117 118 119 120 121 122 |
# File 'lib/zuora_api/exceptions.rb', line 117 def initialize( = nil,response=nil, errors = [], successes = [], *args) @code = response.class.to_s == "HTTParty::Response" ? response.code : nil @message = () @response = response @default_message = "Your request limit has been exceeded for zuora." end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
113 114 115 |
# File 'lib/zuora_api/exceptions.rb', line 113 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
114 115 116 |
# File 'lib/zuora_api/exceptions.rb', line 114 def (value) @default_message = value end |
#logged ⇒ Object
Returns the value of attribute logged.
115 116 117 |
# File 'lib/zuora_api/exceptions.rb', line 115 def logged @logged end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
113 114 115 |
# File 'lib/zuora_api/exceptions.rb', line 113 def response @response end |
Instance Method Details
#to_s ⇒ Object
124 125 126 |
# File 'lib/zuora_api/exceptions.rb', line 124 def to_s @message || @default_message end |