Exception: RubyIpifyException::InvalidParamsError

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

Instance Method Summary collapse

Constructor Details

#initializeInvalidParamsError

Returns a new instance of InvalidParamsError.



16
17
18
19
# File 'lib/ruby_ipify_exception.rb', line 16

def initialize
    msg = "Wrong Format value passed. Please pass anyone from [#{VALID_FORMATS.join(', ')}]."
    super(msg)
end