Module: Dapp::Helper::NetStatus

Defined in:
lib/dapp/helper/net_status.rb

Class Method Summary collapse

Class Method Details

.message(exception) ⇒ Object



4
5
6
7
# File 'lib/dapp/helper/net_status.rb', line 4

def self.message(exception)
  net_status = exception.net_status.net_status_normalize(context: exception.net_status.delete(:context))
  net_status[:message] || [net_status[:error], net_status[:code]].compact.join(': ')
end