Exception: Msp430Bsl::Uart::Exceptions::Ack::MessageNotSupported

Inherits:
StandardError
  • Object
show all
Defined in:
lib/msp430_bsl/uart/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ MessageNotSupported

Returns a new instance of MessageNotSupported.



15
16
17
18
19
20
21
22
# File 'lib/msp430_bsl/uart/exceptions.rb', line 15

def initialize(value)
  message = if value
              "message with value 0x#{value.to_hex_str} not supported"
            else
              "message without a value"
            end
  super(message)
end