Exception: Foobara::CommandPatternImplementation::Concerns::Result::CouldNotProcessResult
- Inherits:
-
Outcome::UnsuccessfulOutcomeError
- Object
- StandardError
- Outcome::UnsuccessfulOutcomeError
- Foobara::CommandPatternImplementation::Concerns::Result::CouldNotProcessResult
- Defined in:
- foobara-0.7.3/projects/command/src/command_pattern_implementation/concerns/result.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
Attributes inherited from Outcome::UnsuccessfulOutcomeError
#backtrace_when_raised, #errors
Instance Method Summary collapse
-
#initialize(command, errors) ⇒ CouldNotProcessResult
constructor
A new instance of CouldNotProcessResult.
Constructor Details
#initialize(command, errors) ⇒ CouldNotProcessResult
Returns a new instance of CouldNotProcessResult.
10 11 12 13 14 |
# File 'projects/command/src/command_pattern_implementation/concerns/result.rb', line 10 def initialize(command, errors) self.command = command super(errors, prefix: command.class.full_command_name) end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
8 9 10 |
# File 'projects/command/src/command_pattern_implementation/concerns/result.rb', line 8 def command @command end |