class RubyPayler::NetworkError
Network Error
(Faraday exception)
Public Class Methods
new(faraday_error)
click to toggle source
# File lib/ruby_payler/errors.rb, line 63 def initialize(faraday_error) @faraday_error = faraday_error end
Public Instance Methods
code()
click to toggle source
# File lib/ruby_payler/errors.rb, line 67 def code 'NetworkError' end
message()
click to toggle source
# File lib/ruby_payler/errors.rb, line 71 def message @faraday_error.inspect end
to_s()
click to toggle source
# File lib/ruby_payler/errors.rb, line 75 def to_s "NetworkError occured while performing request to Payler: #{message}" end