Exception: Ecoportal::API::Common::Client::Error::UnexpectedServerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ecoportal/api/common/client/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg, code:) ⇒ UnexpectedServerError

Returns a new instance of UnexpectedServerError.



9
10
11
# File 'lib/ecoportal/api/common/client/error.rb', line 9

def initialize(msg, code:)
  super("Code: #{code} -- Error: #{msg}")
end