Open FFBoard
Open source force feedback firmware
ErrorHandler Class Reference

#include <ErrorHandler.h>

Inheritance diagram for ErrorHandler:
Axis ErrorPrinter FFBHIDMain FFBHIDExt FFBJoystick FFBWheel

Public Member Functions

 ErrorHandler ()
 
virtual ~ErrorHandler ()
 
virtual void errorCallback (const Error &error, bool cleared)
 

Static Public Member Functions

static void addError (const Error &error)
 
static void clearError (const Error &error)
 
static void clearError (ErrorCode errorcode)
 
static void clearTemp ()
 
static void clearAll ()
 
static std::span< ErrorgetErrors ()
 

Static Public Attributes

static std::vector< ErrorHandler * > errorHandlers
 

Static Protected Member Functions

static void sortErrors ()
 

Static Protected Attributes

static std::array< Error, ERRORHANDLER_MAXERRORS > errors
 

Detailed Description

Definition at line 81 of file ErrorHandler.h.

Constructor & Destructor Documentation

◆ ErrorHandler()

ErrorHandler::ErrorHandler ( )

Definition at line 41 of file ErrorHandler.cpp.

◆ ~ErrorHandler()

ErrorHandler::~ErrorHandler ( )
virtual

Definition at line 46 of file ErrorHandler.cpp.

Member Function Documentation

◆ addError()

void ErrorHandler::addError ( const Error error)
static

Definition at line 76 of file ErrorHandler.cpp.

◆ clearAll()

void ErrorHandler::clearAll ( )
static

Definition at line 53 of file ErrorHandler.cpp.

◆ clearError() [1/2]

void ErrorHandler::clearError ( const Error error)
static

Definition at line 97 of file ErrorHandler.cpp.

◆ clearError() [2/2]

void ErrorHandler::clearError ( ErrorCode  errorcode)
static

Definition at line 116 of file ErrorHandler.cpp.

◆ clearTemp()

void ErrorHandler::clearTemp ( )
static

Definition at line 65 of file ErrorHandler.cpp.

◆ errorCallback()

void ErrorHandler::errorCallback ( const Error error,
bool  cleared 
)
virtual

Reimplemented in ErrorPrinter, FFBHIDMain, and Axis.

Definition at line 133 of file ErrorHandler.cpp.

◆ getErrors()

std::span< Error > ErrorHandler::getErrors ( )
static

Definition at line 129 of file ErrorHandler.cpp.

◆ sortErrors()

void ErrorHandler::sortErrors ( )
staticprotected

Definition at line 137 of file ErrorHandler.cpp.

Member Data Documentation

◆ errorHandlers

std::vector< ErrorHandler * > ErrorHandler::errorHandlers
static

Definition at line 83 of file ErrorHandler.h.

◆ errors

std::array< Error, ERRORHANDLER_MAXERRORS > ErrorHandler::errors
staticprotected

Definition at line 98 of file ErrorHandler.h.


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