AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
exceptions.h
1#ifndef UTILS_EXCEPTIONS_H
2#define UTILS_EXCEPTIONS_H
3
4#include <string>
5
6namespace utils {
7// Base class for custom exception types.
8class Exception {
9protected:
10 const std::string msg;
11
12public:
13 explicit Exception(const std::string& msg);
14 virtual ~Exception() = default;
15
16 std::string get_message() const;
17 virtual void print() const;
18};
19
20struct TimeoutException {};
21}
22
23#endif