-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathErrorResponse.h
More file actions
61 lines (52 loc) · 1.39 KB
/
ErrorResponse.h
File metadata and controls
61 lines (52 loc) · 1.39 KB
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
52
53
54
55
56
57
58
59
60
61
///////////////////////////////////////////////////////////
// ErrorResponse.h
// Implementation of the Class ErrorResponse
// Created on: 30-Sau-2014 17:06:18
// Original author: Povilas
///////////////////////////////////////////////////////////
#if !defined (ERRORRESPONSE_H)
#define ERRORRESPONSE_H
#include <string>
/** \brief Class that saves the errors and returns to the SOAP client if present
*
*/
class ErrorResponse
{
public:
/** \brief Constructor
*
*/
ErrorResponse();
/** \brief Destructor
*
*/
virtual ~ErrorResponse();
/** \brief Returns fault string
*
* \return std::string
*/
static std::string getFaultString();
/** \brief Returns fault details
* \return std::string
*
*/
static std::string getFaultDetail();
/** \brief Sets fault details
*
* \param std::string detail fault description
* \param bool append = true if append faults
* \return void
*
*/
static void setFaultDetail(std::string detail, bool append = true);
/** \brief Indicates if there were faults
* \return bool
*
*/
static bool isFaultFound();
private:
static std::string faultString; /**< Fault string */
static std::string faultDetail; /**< Attribute that holds fault description */
static bool fault; /**< Indicates if the fault has been trigerred */
};
#endif //!(ERRORRESPONSE_H)