22 lines
356 B
C++
22 lines
356 B
C++
/*
|
|
* 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_ */
|