BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ers/include/ers/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
26 protected:
27 IssueFactoryIssue( const Context& context, severity_t s );
28
29 public:
30 static const char* const CLASS_NAME;
31
33 IssueFactoryIssue( const Context& context, severity_t s, const std::string& name,
34 const std::string& message );
35
36 const char* get_class_name() const throw();
37 }; // IssueFactoryIssue
38
39} // namespace ers
40
41/** \def ERS_ISSUE_FACTORY_ERROR(name,message) Macro that inserts the ERS_HERE and the error
42 * value for IssueFactoryIssue constructor
43 */
44
45#define ERS_ISSUE_FACTORY_ERROR( name, message ) \
46 IssueFactoryIssue( ERS_HERE, ers::error, name, message )
47
48#endif
XmlRpcServer s
Source context for Issue.
const char * get_class_name() const
Get key for class (used for serialisation).
IssueFactoryIssue(const Context &context, severity_t s)
const std::string & message() const
Message.
Issue(const Context &context, severity_t s)
Constructor for subclasses.
enum ers::_severity_t severity_t