Exception: CodinRep::Command::UnknownHeader

Inherits:
StandardError
  • Object
show all
Defined in:
lib/codin_rep/command.rb

Instance Method Summary collapse

Constructor Details

#initialize(header, command_executed, expected_header = nil) ⇒ UnknownHeader

Returns a new instance of UnknownHeader.



26
27
28
29
30
# File 'lib/codin_rep/command.rb', line 26

def initialize(header, command_executed, expected_header=nil)
  @header = header
  @command_executed = command_executed
  @expected_header = expected_header
end

Instance Method Details

#messageObject



32
33
34
35
# File 'lib/codin_rep/command.rb', line 32

def message
  message = "The REP returned an unknown header '#{@header}' for the command '#{@command_executed}'."
  message += " Expected header was '#{@expected_header}'." if @expected_header
end