Exception: Omnibus::LicensingError

Inherits:
Error
  • Object
show all
Defined in:
lib/omnibus/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ LicensingError

Returns a new instance of LicensingError.



340
341
342
# File 'lib/omnibus/exceptions.rb', line 340

def initialize(errors)
  @errors = errors
end

Instance Method Details

#to_sObject



344
345
346
347
348
349
350
351
352
# File 'lib/omnibus/exceptions.rb', line 344

def to_s
  <<~EOH
    Encountered error(s) with project's licensing information.
    Failing the build because :fatal_licensing_warnings is set in the configuration.
    Error(s):

        #{@errors.join("\n    ")}
  EOH
end