Adding exceptions to Particle code

I have been working on a library for communicating with other other devices over serial. I got it tested / compiled in a local c++ console app, but have ran into some trouble trying to port the code to particle. On compile I get the error “exception handling disabled, use -fexceptions to enable”. Exception are important in our library to ensure reliability. Is there anyway to enable them? Thanks,


I think you should rethink your plan. Exceptions are big hammer on this small platform and I think a lot of code would have to be added to handle them.

The traditional way of communicating exceptions in Arduino libraries is to use return values with negative values indicating a failure and possibly a specific error code.