mirror of
https://github.com/JS8Call-improved/JS8Call-improved
synced 2026-08-13 17:47:36 -04:00
Code cleanup - move loose source and header files in source tree to group folders
Rename all header files with .h extension Fix function declaration in HamlibTransceiver.h that overrode member function but was not marked override Remove unused variable in Modulator.cpp Remove unused files from source tree Remove duplicate LazyFillComboBox files Reformat codebase to LLVM C++ standard
This commit is contained in:
parent
a9760e6f71
commit
356bdc0f50
326 changed files with 46098 additions and 46900 deletions
35
JS8_Main/MessageError.cpp
Normal file
35
JS8_Main/MessageError.cpp
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#include "MessageError.h"
|
||||
|
||||
/******************************************************************************/
|
||||
// Private Implementation
|
||||
/******************************************************************************/
|
||||
|
||||
namespace {
|
||||
const struct final : public std::error_category {
|
||||
const char *name() const noexcept override { return "message"; }
|
||||
|
||||
std::string message(int const ev) const override {
|
||||
using MessageError::Code;
|
||||
|
||||
switch (static_cast<Code>(ev)) {
|
||||
case Code::json_parsing_error:
|
||||
return "json parsing error";
|
||||
case Code::json_not_an_object:
|
||||
return "json not an object";
|
||||
|
||||
default:
|
||||
return "message error";
|
||||
}
|
||||
}
|
||||
} Category;
|
||||
} // namespace
|
||||
|
||||
/******************************************************************************/
|
||||
// Implementation
|
||||
/******************************************************************************/
|
||||
|
||||
namespace MessageError {
|
||||
std::error_category const &category() noexcept { return Category; }
|
||||
} // namespace MessageError
|
||||
|
||||
/******************************************************************************/
|
||||
Loading…
Add table
Add a link
Reference in a new issue