Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
WizardException.h
1//
2// Created by Manuel on 09.03.2021.
3//
4
5#ifndef WIZARD_WIZARDEXCEPTION_H
6#define WIZARD_WIZARDEXCEPTION_H
7
8#include <string>
9
10class WizardException : public std::exception {
11private:
12 std::string _msg;
13public:
14 explicit WizardException(const std::string& message) : _msg(message) { };
15
16 const char* what() const noexcept override {
17 return _msg.c_str();
18 }
19};
20
21#endif //WIZARD_WIZARDEXCEPTION_H
Definition WizardException.h:10