Exception: Foobara::Outcome::UnsuccessfulOutcomeError

Inherits:
StandardError
  • Object
show all
Defined in:
foobara-0.0.110/projects/common/src/outcome.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ UnsuccessfulOutcomeError

Returns a new instance of UnsuccessfulOutcomeError.



6
7
8
9
10
11
12
# File 'foobara-0.0.110/projects/common/src/outcome.rb', line 6

def initialize(errors)
  self.errors = errors

  message = errors.map(&:message).join(", ")

  super(message)
end

Instance Attribute Details

#backtrace_when_raisedObject

Returns the value of attribute backtrace_when_raised.



4
5
6
# File 'foobara-0.0.110/projects/common/src/outcome.rb', line 4

def backtrace_when_raised
  @backtrace_when_raised
end

#errorsObject

Returns the value of attribute errors.



4
5
6
# File 'foobara-0.0.110/projects/common/src/outcome.rb', line 4

def errors
  @errors
end