Exception: LicenseAcceptance::LicenseNotAcceptedError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- LicenseAcceptance::LicenseNotAcceptedError
- Defined in:
- lib/license_acceptance/acceptor.rb
Instance Method Summary collapse
-
#initialize(missing_licenses) ⇒ LicenseNotAcceptedError
constructor
A new instance of LicenseNotAcceptedError.
Constructor Details
#initialize(missing_licenses) ⇒ LicenseNotAcceptedError
Returns a new instance of LicenseNotAcceptedError.
163 164 165 166 |
# File 'lib/license_acceptance/acceptor.rb', line 163 def initialize(missing_licenses) msg = "Missing licenses for the following:\n* " + missing_licenses.map(&:name).join("\n* ") super(msg) end |