Class: ZendeskAPI::Error::ClientError

Inherits:
Faraday::ClientError
  • Object
show all
Defined in:
lib/zendesk_api/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#wrapped_exceptionObject (readonly)

Returns the value of attribute wrapped_exception.



5
6
7
# File 'lib/zendesk_api/error.rb', line 5

def wrapped_exception
  @wrapped_exception
end

Instance Method Details

#to_sObject



7
8
9
10
11
12
13
# File 'lib/zendesk_api/error.rb', line 7

def to_s
  if response
    "#{super} -- #{response.method} #{response.url}"
  else
    super
  end
end