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