mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-29 17:02:21 +00:00
Adding documentation
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// Created by anonymus-raccoon on 1/27/20.
|
||||
//
|
||||
|
||||
#ifndef COMSQUARE_INVALIDADDRESS_HPP
|
||||
#define COMSQUARE_INVALIDADDRESS_HPP
|
||||
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
namespace ComSquare
|
||||
{
|
||||
//! @brief Exception thrown when trying to read/write to an invalid address.
|
||||
class InvalidAddress : std::exception {
|
||||
private:
|
||||
std::string _msg;
|
||||
public:
|
||||
explicit InvalidAddress(const std::string &msg) : _msg(msg) {}
|
||||
const char *what() const noexcept override { return this->_msg.c_str(); }
|
||||
};
|
||||
}
|
||||
|
||||
#endif //COMSQUARE_INVALIDADDRESS_HPP
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
namespace ComSquare
|
||||
{
|
||||
//! @brief When this is thrown, it means that we should work more.
|
||||
class NotImplementedException : std::exception {
|
||||
public:
|
||||
explicit NotImplementedException() = default;
|
||||
|
||||
Reference in New Issue
Block a user