Open FFBoard
Open source force feedback firmware
Error Class Reference

#include <ErrorHandler.h>

Public Member Functions

 Error ()
 
 Error (ErrorCode code, ErrorType type, std::string info)
 
std::string toString ()
 
bool operator== (const Error &b) const
 
bool isError () const
 

Public Attributes

ErrorCode code = ErrorCode::none
 
ErrorType type = ErrorType::none
 
std::string info
 

Detailed Description

Definition at line 60 of file ErrorHandler.h.

Constructor & Destructor Documentation

◆ Error() [1/2]

Error::Error ( )
inline

Definition at line 63 of file ErrorHandler.h.

◆ Error() [2/2]

Error::Error ( ErrorCode  code,
ErrorType  type,
std::string  info 
)
inline

Definition at line 64 of file ErrorHandler.h.

Member Function Documentation

◆ isError()

bool Error::isError ( ) const
inline

Definition at line 75 of file ErrorHandler.h.

◆ operator==()

bool Error::operator== ( const Error b) const
inline

Definition at line 74 of file ErrorHandler.h.

◆ toString()

std::string Error::toString ( )

Definition at line 20 of file ErrorHandler.cpp.

Member Data Documentation

◆ code

ErrorCode Error::code = ErrorCode::none

Definition at line 65 of file ErrorHandler.h.

◆ info

std::string Error::info

Definition at line 67 of file ErrorHandler.h.

◆ type

ErrorType Error::type = ErrorType::none

Definition at line 66 of file ErrorHandler.h.


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