Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Macros

Detailed Description

Macros for handling and reporting both fatal and non-fatal errors.

+ Collaboration diagram for Error:

Macros

#define FATAL_ERROR(msg, errc)
 Print the error message and error code, and stop the execution.
 

Macro Definition Documentation

◆ FATAL_ERROR

#define FATAL_ERROR ( msg,
errc )
Value:
do { \
DEBUGFN(F("Fatal Error: ") << msg << " (0x" << hex << uppercase \
<< errc << dec << nouppercase << ')'); \
fatalErrorExit(); \
} while (0)
#define USING_AH_NAMESPACE

Print the error message and error code, and stop the execution.

Doesn't depend on FATAL_ERRORS, it always stops the execution.

Parameters
msgThe information to print, can contain streaming operators (<<) to print multiple things.
errcA unique error code.
Examples
2.VU-Meter-OLED-USB-DAC.ino, AppleMIDI.ino, MCU-OLED-SSD1306-x2.ino, MCU-OLED-SSD1306.ino, MIDI-Monitor-OLED.ino, and VU-Meter-Bridge.ino.

Definition at line 57 of file Error.hpp.