YPC
0.2.0
include
ypc
core
exceptions.h
1
#pragma once
2
#include <exception>
3
#include <string>
4
5
namespace
ypc {
6
class
data_sample_too_large
:
public
std::exception {
7
public
:
8
data_sample_too_large
(
const
std::string &plugin,
const
std::string &extra);
9
virtual
const
char
*what()
throw
();
10
11
protected
:
12
const
std::string m_plugin;
13
const
std::string m_extra;
14
15
std::string m_res;
16
};
17
18
class
data_format_too_large
:
public
std::exception {
19
public
:
20
data_format_too_large
(
const
std::string &plugin,
const
std::string &extra);
21
virtual
const
char
*what()
throw
();
22
23
protected
:
24
const
std::string m_plugin;
25
const
std::string m_extra;
26
27
std::string m_res;
28
};
29
30
class
file_not_found
:
public
std::exception {
31
public
:
32
file_not_found
(
const
std::string &path,
const
std::string &extra);
33
34
virtual
const
char
*what()
throw
();
35
36
protected
:
37
const
std::string m_path;
38
const
std::string m_extra;
39
40
std::string m_res;
41
};
42
43
class
file_open_failure
:
public
std::exception {
44
public
:
45
file_open_failure
(
const
std::string &path,
const
std::string &extra);
46
47
virtual
const
char
*what()
throw
();
48
49
protected
:
50
const
std::string m_path;
51
const
std::string m_extra;
52
53
std::string m_res;
54
};
55
}
// namespace ypc
ypc::data_sample_too_large
Definition:
exceptions.h:6
ypc::data_format_too_large
Definition:
exceptions.h:18
ypc::file_not_found
Definition:
exceptions.h:30
ypc::file_open_failure
Definition:
exceptions.h:43
Generated by
1.8.17