Exception: Msp430Bsl::Uart::Exceptions::PeripheralInterface::InterfaceHeaderNOK

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

Instance Method Summary collapse

Constructor Details

#initialize(received_header) ⇒ InterfaceHeaderNOK

Returns a new instance of InterfaceHeaderNOK.



56
57
58
59
# File 'lib/msp430_bsl/uart/exceptions.rb', line 56

def initialize(received_header)
  message = "Peripheral interface header NOK. Received '0x#{received_header.to_hex_str}' instead of 0x#{PeripheralInterface::OK_HEADER.to_hex_str}"
  super(message)
end