Exception: RubyIpifyException::UnexpectedError

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

Instance Method Summary collapse

Constructor Details

#initialize(err_msg = '') ⇒ UnexpectedError

Returns a new instance of UnexpectedError.



23
24
25
26
# File 'lib/ruby_ipify_exception.rb', line 23

def initialize(err_msg='')
    msg = "Unexpected error occured. Failed with an error: #{err_msg}."
    super(msg)
end