Exception: ZuoraAPI::Exceptions::ZuoraAPIAuthenticationTypeError
- Inherits:
-
Error
- Object
- StandardError
- Error
- ZuoraAPI::Exceptions::ZuoraAPIAuthenticationTypeError
- 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.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIAuthenticationTypeError
constructor
A new instance of ZuoraAPIAuthenticationTypeError.
- #to_s ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(message = nil, response = nil, errors = [], successes = [], *args) ⇒ ZuoraAPIAuthenticationTypeError
Returns a new instance of ZuoraAPIAuthenticationTypeError.
199 200 201 202 203 204 |
# File 'lib/zuora_api/exceptions.rb', line 199 def initialize( = nil,response=nil, errors = [], successes = [], *args) @code = response.class.to_s == "HTTParty::Response" ? response.code : nil @message = () @response = response @default_message = "Authentication type is not supported by this Login" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
196 197 198 |
# File 'lib/zuora_api/exceptions.rb', line 196 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
197 198 199 |
# File 'lib/zuora_api/exceptions.rb', line 197 def (value) @default_message = value end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
196 197 198 |
# File 'lib/zuora_api/exceptions.rb', line 196 def response @response end |
Instance Method Details
#to_s ⇒ Object
206 207 208 |
# File 'lib/zuora_api/exceptions.rb', line 206 def to_s @message || @default_message end |