Exception: Foobara::CommandPatternImplementation::Concerns::Result::CouldNotProcessResult

Inherits:
Outcome::UnsuccessfulOutcomeError show all
Defined in:
foobara-0.7.3/projects/command/src/command_pattern_implementation/concerns/result.rb

Instance Attribute Summary collapse

Attributes inherited from Outcome::UnsuccessfulOutcomeError

#backtrace_when_raised, #errors

Instance Method Summary collapse

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