Exception: Ranker::Rankings::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/ranker/rankings.rb

Overview

Inner classes:

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ Error

Returns a new instance of Error.



92
93
94
95
96
97
98
# File 'lib/ranker/rankings.rb', line 92

def initialize(errors)
  message = 'Rankings has errors: '
  message << errors.map { |name, error|
    "#{name} #{error}"
  }.join(', ')
  super(message)
end