Exception: Foobara::Outcome::UnsuccessfulOutcomeError
- Inherits:
-
StandardError
- Object
- StandardError
- Foobara::Outcome::UnsuccessfulOutcomeError
- Defined in:
- foobara-0.0.110/projects/common/src/outcome.rb
Direct Known Subclasses
CommandPatternImplementation::Concerns::Result::CouldNotProcessResult
Instance Attribute Summary collapse
-
#backtrace_when_raised ⇒ Object
Returns the value of attribute backtrace_when_raised.
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ UnsuccessfulOutcomeError
constructor
A new instance of UnsuccessfulOutcomeError.
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 = errors.map(&:message).join(", ") super() end |
Instance Attribute Details
#backtrace_when_raised ⇒ Object
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 |
#errors ⇒ Object
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 |