Exception: UnsatisfiedRequirements

Inherits:
RuntimeError
  • Object
show all
Defined in:
exceptions.rb

Overview

Raised when there are unsatisfied requirements.

Instance Method Summary collapse

Constructor Details

#initialize(reqs) ⇒ UnsatisfiedRequirements

Returns a new instance of UnsatisfiedRequirements.



401
402
403
404
405
406
407
# File 'exceptions.rb', line 401

def initialize(reqs)
  if reqs.length == 1
    super "An unsatisfied requirement failed this build."
  else
    super "Unsatisfied requirements failed this build."
  end
end