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.



369
370
371
372
373
374
375
# File 'exceptions.rb', line 369

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