Files
esp-gui-lib/src/errorhandlerinterface.h
T

21 lines
326 B
C++
Raw Normal View History

#pragma once
// system includes
#include <string>
namespace espgui {
class ErrorHandlerInterface
{
public:
2022-06-15 10:50:04 +02:00
virtual void errorOccurred(std::string &&error) = 0;
};
class DummyErrorHandler : public virtual ErrorHandlerInterface
{
public:
2022-06-15 10:50:04 +02:00
void errorOccurred(std::string &&error) override {}
};
} // namespace espgui