MotorControlModuleSDFM_TMS3.../Projects/EFC_Application/UMLibrary/common/Error.hh

22 lines
356 B
C++
Raw Permalink Normal View History

/*
* Error.hpp
*
* Created on: 11 May 2023
* Author: malyarenko
*/
#ifndef UMLIBRARY_COMMON_ERROR_HH_
#define UMLIBRARY_COMMON_ERROR_HH_
struct Error {
const int code;
const char* const message;
Error(int code, const char* message)
: code(code),
message(message) { }
};
#endif /* UMLIBRARY_COMMON_ERROR_HH_ */