Exception: SuperDiff::Errors::NoOperationalSequencerAvailableError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/super_diff/errors/no_operational_sequencer_available_error.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNoOperationalSequencerAvailableError

Returns a new instance of NoOperationalSequencerAvailableError.



14
15
16
17
18
19
# File 'lib/super_diff/errors/no_operational_sequencer_available_error.rb', line 14

def initialize
  super(<<-MESSAGE)
There is no operational sequencer available to handle an "expected" value of
type #{expected.class} and an "actual" value of type #{actual.class}.
  MESSAGE
end

Instance Attribute Details

#actualObject

Returns the value of attribute actual.



12
13
14
# File 'lib/super_diff/errors/no_operational_sequencer_available_error.rb', line 12

def actual
  @actual
end

#expectedObject

Returns the value of attribute expected.



12
13
14
# File 'lib/super_diff/errors/no_operational_sequencer_available_error.rb', line 12

def expected
  @expected
end

Class Method Details

.create(expected, actual) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/super_diff/errors/no_operational_sequencer_available_error.rb', line 4

def self.create(expected, actual)
  allocate.tap do |error|
    error.expected = expected
    error.actual = actual
    error.__send__(:initialize)
  end
end