Arduino Tinker Library
 All Classes Functions Variables
Public Types | Static Public Member Functions | List of all members
Tinker::Exception Class Reference

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.
 

Detailed Description

A static class used to handle exceptions.

This class permits to uset something similar to C++ try/catch in your arduino code

Author
Nicola Pezzotti

The documentation for this class was generated from the following files: