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
6
namespace
utils {
7
// Base class for custom exception types.
8
class
Exception {
9
protected
:
10
const
std::string msg;
11
12
public
:
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
20
struct
TimeoutException {};
21
}
22
23
#endif
downward
utils
exceptions.h
Generated on Tue Jan 7 2025 for AI 24/25 Project Software by
1.12.0