ClockWork DB CoreAPI 1.0.48
Abstract Time Series and Storage/Management Library
Loading...
Searching...
No Matches
exceptions.hpp
1#ifndef HAVE_TOM__EXCEPTIONS_HPP
2#define HAVE_TOM__EXCEPTIONS_HPP
3
4#include <tom-util/defines.hpp>
5#include <stdexcept>
6
7namespace tom {
8
9 class TOM_UTIL_API UnknownException : public std::runtime_error
10 {
11 public:
12 UnknownException( const std::string &name ) : std::runtime_error( ("Unknown exception: ") + name ) { }
13 };
14
15 class TOM_UTIL_API UnableToLoadLibrary : public std::runtime_error
16 {
17 public:
18 UnableToLoadLibrary( const std::string &name ) : std::runtime_error( ("Unable to load library: ") + name ) { }
19 };
20 class TOM_UTIL_API SymbolNotFound : public std::runtime_error
21 {
22 public:
23 SymbolNotFound( const std::string &name ) : std::runtime_error( ("Symbol not found: ") + name ) { }
24 };
25
26 class TOM_UTIL_API AccessDenied : public std::runtime_error
27 {
28 public:
29 AccessDenied( const std::string &name ) : std::runtime_error( ("Access denied: ") + name ) { }
30 };
31
32 class TOM_UTIL_API TooManyFileDescriptorsInUse : public std::runtime_error
33 {
34 public:
35 TooManyFileDescriptorsInUse( const std::string &name ) : std::runtime_error( ("Too many files open: ") + name ) { }
36 };
37
38 class TOM_UTIL_API TooManyFileDescriptorsInUseOnSystem : public std::runtime_error
39 {
40 public:
41 TooManyFileDescriptorsInUseOnSystem( const std::string &name ) : std::runtime_error( ("Too many files open on system: " )+ name ) { }
42 };
43
44 class TOM_UTIL_API DirectoryDoesNotExist : public std::runtime_error
45 {
46 public:
47 DirectoryDoesNotExist( const std::string &name ) : std::runtime_error( ("Directory does not exist: ") + name ) { }
48 };
49
50 class TOM_UTIL_API OutOfMemory : public std::runtime_error
51 {
52 public:
53 OutOfMemory( ) : std::runtime_error( ("Out of memory!" )) { }
54 };
55 class TOM_UTIL_API NotADirectory : public std::runtime_error
56 {
57 public:
58 NotADirectory( const std::string &name ) : std::runtime_error( ("Not a directory: ") + name ) { }
59 };
60
61} // end tom namespace
62
63#endif
Definition exceptions.hpp:27
Definition exceptions.hpp:45
Definition exceptions.hpp:56
Definition exceptions.hpp:51
Definition exceptions.hpp:21
Definition exceptions.hpp:33
Definition exceptions.hpp:39
Definition exceptions.hpp:16
Definition exceptions.hpp:10