Exception: RubyIpifyException::IpifyRequestError
- Inherits:
-
CustomException
- Object
- StandardError
- CustomException
- RubyIpifyException::IpifyRequestError
- Defined in:
- lib/ruby_ipify_exception.rb
Instance Method Summary collapse
-
#initialize(code = '') ⇒ IpifyRequestError
constructor
A new instance of IpifyRequestError.
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 |