Exception: Msp430Bsl::Exceptions::Response::WrongDataSize
- Inherits:
-
StandardError
- Object
- StandardError
- Msp430Bsl::Exceptions::Response::WrongDataSize
- Defined in:
- lib/msp430_bsl/exceptions.rb
Instance Method Summary collapse
-
#initialize(data, size, min: false) ⇒ WrongDataSize
constructor
A new instance of WrongDataSize.
Constructor Details
#initialize(data, size, min: false) ⇒ WrongDataSize
Returns a new instance of WrongDataSize.
44 45 46 47 |
# File 'lib/msp430_bsl/exceptions.rb', line 44 def initialize(data, size, min: false) = "payload with a size of '#{data.size}' doesn't satisfy the required #{min ? 'min' : ''}size of '#{size}'" super() end |