Exception: RubyIpifyException::IpifyRequestError

Inherits:
CustomException
  • Object
show all
Defined in:
lib/ruby_ipify_exception.rb

Instance Method Summary collapse

Constructor Details

#initialize(code = '') ⇒ IpifyRequestError

Returns a new instance of IpifyRequestError.



9
10
11
12
# File 'lib/ruby_ipify_exception.rb', line 9

def initialize(code='')
    msg = "Received an invalid status code from ipify: #{code}. The service might be experiencing issues."
    super(msg)
end