Exception: Msp430Bsl::Uart::Exceptions::PeripheralInterface::InterfaceHeaderNOK
- Inherits:
-
StandardError
- Object
- StandardError
- Msp430Bsl::Uart::Exceptions::PeripheralInterface::InterfaceHeaderNOK
- Defined in:
- lib/msp430_bsl/uart/exceptions.rb
Instance Method Summary collapse
-
#initialize(received_header) ⇒ InterfaceHeaderNOK
constructor
A new instance of InterfaceHeaderNOK.
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) = "Peripheral interface header NOK. Received '0x#{received_header.to_hex_str}' instead of 0x#{PeripheralInterface::OK_HEADER.to_hex_str}" super() end |