Closed joshuagruenstein closed 8 years ago
std::runtime_exception should not be used since we are moving away from the standard library since it isnt really supported on microcontrollers.
We could use a preprocessor directive to check for the existence of exceptions and throw them if they exist?
@joshuagruenstein @FlyingGraysons: @Sydriax suggested using assert
instead of std::runtime_exception
or throw
. It is C code, so will be available on microcontrollers. Right?
Fixed in 65d4f8c63ad57d9bd68a13962fb5a341580f65d9
Errors are handled by throwing 1 and printing the message with std::cout. This should instead use std::runtime_exception.