-
Notifications
You must be signed in to change notification settings - Fork 0
/
exceptions.hpp
51 lines (40 loc) · 1.2 KB
/
exceptions.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef EXCEPTIONS_HPP_INCLUDED
#define EXCEPTIONS_HPP_INCLUDED
#include <exception>
// LANG: HUN
class internal_error : public std::exception {
const char *message;
public:
internal_error(const char *msg = "Hiba van az implementacioban!")
: message(msg) {}
const char *what() const throw() { return message; }
};
class invalid_binary_search_tree : public std::exception {
public:
const char *what() const throw() {
return "Serulnek a binaris keresofa kriteriumok!";
}
};
class invalid_dimension : public std::exception {
public:
const char *what() const throw() { return "Rossz kulcs dimenzio!"; }
};
class invalid_iterator : public std::exception {
public:
const char *what() const throw() { return "NULL elemre mutat az iterator!"; }
};
class empty_tree : public std::exception {
public:
const char *what() const throw() {
return "Ures a fa, nem ertelmezheto a kereses!";
}
};
class duplicate_element : public std::exception {
public:
const char *what() const throw() { return "Ket egyezo kulcs!"; }
};
class copy_not_implemented : public std::exception {
public:
const char *what() const throw() { return "Masolas nincs implementalva!"; }
};
#endif // EXCEPTIONS_HPP_INCLUDED