BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
IssueFactoryIssue.h
Go to the documentation of this file.
1/*
2 * IssueFactoryIssue.h
3 * ers
4 *
5 * Created by Matthias Wiesmann on 04.01.05.
6 * Copyright 2005 CERN. All rights reserved.
7 *
8 */
9
10#ifndef ERS_ISSUE_FACTORY_ISSUE
11#define ERS_ISSUE_FACTORY_ISSUE
12
13#include "ers/Issue.h"
14
15namespace ers {
16
17 /** This class represents an issue that occurs in the Issue factory.
18 * Those issue typically mean that a Issue object could not be deserialized.
19 * \author Matthias Wiesmann
20 * \version 1.0
21 * \brief Issue in the Issue factory mechanism.
22 */
23
24 class IssueFactoryIssue : public Issue {
25
26protected:
27 IssueFactoryIssue(const Context &context, severity_t s);
28public:
29 static const char* const CLASS_NAME ;
30
32 IssueFactoryIssue(const Context &context, severity_t s, const std::string&name, const std::string &message);
33
34 const char *get_class_name() const throw() ;
35 } ; // IssueFactoryIssue
36
37
38} // ers
39
40/** \def ERS_ISSUE_FACTORY_ERROR(name,message) Macro that inserts the ERS_HERE and the error value for IssueFactoryIssue constructor
41 */
42
43#define ERS_ISSUE_FACTORY_ERROR(name,message) IssueFactoryIssue(ERS_HERE,ers::error,name,message)
44
45#endif
46
XmlRpcServer s
Definition: HelloServer.cpp:11
Source context for Issue.
Definition: Context.h:42
Issue in the Issue factory mechanism.
static const char *const CLASS_NAME
const char * get_class_name() const
Get key for class (used for serialisation)
Root Issue class.
const std::string & message() const
Message.
enum ers::_severity_t severity_t