Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sdk
src
FaspManagerException.h
Go to the documentation of this file.
1
7
#ifndef __FASP_MANAGER_EXCEPTION_H__
8
#define __FASP_MANAGER_EXCEPTION_H__
9
10
#include "
FaspManagerCommon.h
"
11
#include <exception>
12
#include <string>
13
14
namespace
Aspera
15
{
16
namespace
FaspManager
17
{
18
20
class
Exception
21
{
22
/* Member variables */
23
protected
:
24
26
std::string
m_err_msg
;
27
28
/* Member functions */
29
public
:
30
32
FASP_MANAGER_API
Exception
( ) :
m_err_msg
(
"Generic FASP exception"
) { };
33
34
38
FASP_MANAGER_API
Exception
( std::string err_msg ) :
m_err_msg
( err_msg ) { };
39
41
FASP_MANAGER_API
virtual
~Exception
( ) { };
42
46
FASP_MANAGER_API
const
char
*
GetErrMsg
( ) {
return
m_err_msg
.c_str(); };
47
};
48
49
51
class
SocketException
:
public
Exception
52
{
53
/* Member functions */
54
public
:
55
57
FASP_MANAGER_API
SocketException
( ) :
Exception
( ) { };
58
59
63
FASP_MANAGER_API
SocketException
( std::string err_msg ) :
Exception
( err_msg ) { };
64
66
FASP_MANAGER_API
~SocketException
( ) { };
67
};
68
70
class
XferException
:
public
Exception
71
{
72
/* Member functions */
73
public
:
75
FASP_MANAGER_API
XferException
( ) :
Exception
( ) { };
76
80
81
FASP_MANAGER_API
XferException
( std::string err_msg ) :
Exception
( err_msg ) { };
82
84
FASP_MANAGER_API
~XferException
( ) { };
85
};
86
88
class
InvalidOperationException
:
public
Exception
89
{
90
/* Member functions */
91
public
:
93
FASP_MANAGER_API
InvalidOperationException
( ) :
Exception
( ) { };
94
99
FASP_MANAGER_API
InvalidOperationException
( std::string err_msg ) :
Exception
( err_msg ) { };
100
102
FASP_MANAGER_API
~InvalidOperationException
( ) { };
103
};
104
106
class
JobNotFoundException
:
public
Exception
107
{
108
/* Member functions */
109
public
:
110
112
FASP_MANAGER_API
JobNotFoundException
( ) :
Exception
( ) { };
113
118
FASP_MANAGER_API
JobNotFoundException
( std::string err_msg ) :
Exception
( err_msg ) { };
119
121
FASP_MANAGER_API
~JobNotFoundException
( ) { };
122
};
123
124
126
class
SendException
:
public
Exception
127
{
128
/* Member functions */
129
public
:
130
132
FASP_MANAGER_API
SendException
( ) :
Exception
( ) { };
133
138
FASP_MANAGER_API
SendException
( std::string err_msg ) :
Exception
( err_msg ) { };
139
140
142
FASP_MANAGER_API
~SendException
( ) { };
143
};
144
146
class
StateException
:
public
Exception
147
{
148
/* Member functions */
149
public
:
151
FASP_MANAGER_API
StateException
( ) :
Exception
( ) { };
152
157
FASP_MANAGER_API
StateException
( std::string err_msg ) :
Exception
( err_msg ) { };
158
160
FASP_MANAGER_API
~StateException
( ) { };
161
};
162
164
class
ValidationException
:
public
Exception
165
{
166
/* Member functions */
167
public
:
168
170
FASP_MANAGER_API
ValidationException
( ) :
Exception
( ) { };
171
176
FASP_MANAGER_API
ValidationException
( std::string err_msg ) :
Exception
( err_msg ) { };
177
179
FASP_MANAGER_API
~ValidationException
( ) { };
180
};
181
182
}
/* namespace FaspManager */
183
}
/* namespace Aspera */
184
185
#endif
/* __FASP_MANAGER_EXCEPTION_H__ */
Copyright © 2005 - 2008 Aspera, Inc. |
asperasoft.com