Exception: EasyPing::HTTPClientError

Inherits:
Error
  • Object
show all
Defined in:
lib/easy_ping/error.rb

Overview

Wrap Faraday client error

Instance Method Summary collapse

Methods inherited from Error

#inspect

Constructor Details

#initialize(exception) ⇒ HTTPClientError

Returns a new instance of HTTPClientError.



10
11
12
13
# File 'lib/easy_ping/error.rb', line 10

def initialize(exception)
  @exception = exception
  super(exception.message)
end

Instance Method Details

#backtraceObject



15
16
17
18
19
20
21
# File 'lib/easy_ping/error.rb', line 15

def backtrace
  if @exception
    @exception.backtrace
  else
    super
  end
end