class Autobuild::CompositeException

The exception type that is used to report multiple errors that occured when ignore_errors is set

Attributes

original_errors[R]

The array of exception objects representing all the errors that occured during the build

Public Class Methods

new(original_errors) click to toggle source
Calls superclass method Autobuild::PhaseException::new
# File lib/autobuild/exceptions.rb, line 154
def initialize(original_errors)
    @original_errors = original_errors
    super()
end

Public Instance Methods

mail?() click to toggle source
# File lib/autobuild/exceptions.rb, line 159
def mail?
    true
end
to_s() click to toggle source
# File lib/autobuild/exceptions.rb, line 163
def to_s
    result = ["#{original_errors.size} errors occured"]
    original_errors.each_with_index do |e, i|
        result << "(#{i}) #{e}"
    end
    result.join("\n")
end