Exception: Faraday::Error::ClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/faraday/error.rb

Direct Known Subclasses

ConnectionFailed, ParsingError, ResourceNotFound

Instance Method Summary collapse

Constructor Details

#initialize(exception) ⇒ ClientError

Returns a new instance of ClientError.



4
5
6
# File 'lib/faraday/error.rb', line 4

def initialize(exception)
  @inner_exception = exception
end

Instance Method Details

#backtraceObject



12
13
14
# File 'lib/faraday/error.rb', line 12

def backtrace
  @inner_exception.backtrace
end

#inspectObject



22
23
24
# File 'lib/faraday/error.rb', line 22

def inspect
  @inner_exception.inspect
end

#messageObject Also known as: to_str



8
9
10
# File 'lib/faraday/error.rb', line 8

def message
  @inner_exception.message
end

#to_sObject



18
19
20
# File 'lib/faraday/error.rb', line 18

def to_s
  @inner_exception.to_s
end