Exception: Msp430Bsl::Exceptions::Response::NotValid

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

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ NotValid

Returns a new instance of NotValid.



37
38
39
40
# File 'lib/msp430_bsl/exceptions.rb', line 37

def initialize(errors)
  message = "Response not valid. Errors: \n\n#{errors.map { |err| " - #{err[1]}" }.join "\n" }\n"
  super(message)
end