A static class used to handle exceptions. More...
#include <Exception.h>
Public Types | |
| enum | Type { None =0, Logic =1, Runtime =2 } |
| typedef unsigned long | time_type |
| typedef String | string_type |
Static Public Member Functions | |
| static void | throwException (Type type, string_type &message) |
| Throws an exception. | |
| static void | throwException (Type type, const char *message) |
| Throws an exception. | |
| static bool | exceptionThrown () |
| Returns true if an exception has been thrown. | |
| static void | reset () |
| Resets exception handler. | |
| static Type | type () |
| Returns exception type. | |
| static time_type | time () |
| Returns time in millis from sketch start to the current exception. | |
| static const string_type & | message () |
| Returns exception message. | |
A static class used to handle exceptions.
This class permits to uset something similar to C++ try/catch in your arduino code
1.8.5