This repository contains microcontroller program source code and circuit schematics for building the parts for an open hardware and FLOSS based compact cassette player/recorder.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.6 KiB

* This file is part of the open-system-compact-cassette project.
* Copyright (C) 2020-2021 Moritz Strohm <>
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http s ://>.
#include <string>
#include <fmt/format.h>
namespace OSCC
class Exception
uint16_t error_code;
std::string description;
Exception(const uint16_t& error_code, const std::string& description)
: error_code(error_code),
//Nothing else
std::string toString()
return fmt::format(
"Error {}: {}",
uint16_t getErrorCode()
return this->error_code;
std::string getDescription()
return this->description;