Exception: Rclrb::InvalidMessageTypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/rclrb/common.rb

Overview

Publisher.call or Client.call was called with the wrong type of message.

Instance Method Summary collapse

Constructor Details

#initialize(got, expected) ⇒ InvalidMessageTypeError

Returns a new instance of InvalidMessageTypeError.



39
40
41
# File 'lib/rclrb/common.rb', line 39

def initialize got, expected
  super "Invalid message type got '#{got}' expected '#{expected}"
end