Exception: ZuoraConnect::Exceptions::ConnectCommunicationError
- Inherits:
-
Error
- Object
- StandardError
- Error
- ZuoraConnect::Exceptions::ConnectCommunicationError
- Defined in:
- lib/zuora_connect/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, code = nil) ⇒ ConnectCommunicationError
constructor
A new instance of ConnectCommunicationError.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil, response = nil, code = nil) ⇒ ConnectCommunicationError
Returns a new instance of ConnectCommunicationError.
27 28 29 30 31 32 |
# File 'lib/zuora_connect/exceptions.rb', line 27 def initialize( = nil,response=nil, code =nil) @code = code @message = @response = response @default_message = "Error communication with Connect." end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
24 25 26 |
# File 'lib/zuora_connect/exceptions.rb', line 24 def code @code end |
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
25 26 27 |
# File 'lib/zuora_connect/exceptions.rb', line 25 def (value) @default_message = value end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
24 25 26 |
# File 'lib/zuora_connect/exceptions.rb', line 24 def response @response end |
Instance Method Details
#to_s ⇒ Object
34 35 36 |
# File 'lib/zuora_connect/exceptions.rb', line 34 def to_s @message || @default_message end |