-
Notifications
You must be signed in to change notification settings - Fork 1
/
Exceptions.h
39 lines (32 loc) · 961 Bytes
/
Exceptions.h
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
#ifndef _EXCEPTIONS_H_
#define _EXCEPTIONS_H_
#include <stdexcept>
namespace typing
{
class MemoryAllocationError : public std::runtime_error
{
public:
MemoryAllocationError (const std::string& msg) : std::runtime_error(msg) {}
};
class FileNotFoundException : public std::runtime_error
{
public:
FileNotFoundException (const std::string& msg) : std::runtime_error(msg) {}
};
class FileCorruptException : public std::runtime_error
{
public:
FileCorruptException (const std::string& msg) : std::runtime_error(msg) {}
};
class FileWriteException : public std::runtime_error
{
public:
FileWriteException (const std::string& msg) : std::runtime_error(msg) {}
};
class MediaNotLoadedException : public std::runtime_error
{
public:
MediaNotLoadedException (const std::string& msg) : std::runtime_error(msg) {}
};
}
#endif // _EXCEPTIONS_H_