Daniel Konegen / MNIST_example

Dependencies:   mbed-os

Embed: (wiki syntax)

« Back to documentation index

ErrorReporter Class Reference

ErrorReporter Class Reference

A functor that reports error to supporting system. More...

#include <error_reporter.h>

Inherited by MicroErrorReporter.


Detailed Description

A functor that reports error to supporting system.

Invoked similar to printf.

Usage: ErrorReporter foo; foo.Report("test %d", 5); or va_list args; foo.Report("test %d", args); // where args is va_list

Subclass ErrorReporter to provide another reporting destination. For example, if you have a GUI program, you might redirect to a buffer that drives a GUI error log box.

Definition at line 35 of file error_reporter.h.