BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/eformat/include/eformat/Issue.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/**
4 * @file eformat/Issue.h
5 * @author <a href="mailto:Andre.dos.Anjos@cern.ch">Andre DOS ANJOS</a>
6 * $Author: zhangy $
7 * $Revision: 1.1.1.1 $
8 * $Date: 2009/06/19 07:35:41 $
9 *
10 * @brief Defines the base eformat Issue
11 */
12
13#ifndef EFORMAT_ISSUE_H
14#define EFORMAT_ISSUE_H
15
16#include "ers/Issue.h"
17
18namespace eformat {
19
20 /**
21 * This exception is supposed to be thrown when version problems are found
22 */
23 class Issue : public ers::Issue {
24
25 public: // interface
26 /**
27 * Builds a new bad-version exception
28 *
29 * @param context The Error Reporting System context to be used to identify
30 * the spot where this issue was created
31 * @param severity The severity of this issue
32 * @param current The version number that this fragment has
33 * @param supported The version which is supposed to be supported here
34 */
35 Issue( const ers::Context& context, ers::severity_t severity );
36
37 /**
38 * Destructor virtualisation
39 */
40 virtual ~Issue() throw() {}
41 };
42
43} // namespace eformat
44
45/**
46 * Simplifies the use of this Issue
47 */
48#define EFORMAT_ISSUE eformat::Issue( ERS_HERE, ers::error )
49
50#endif /* EFORMAT_ISSUE_H */
Issue(const ers::Context &context, ers::severity_t severity)
Source context for Issue.
Root Issue class.
severity_t severity() const
severity_t of the issue
enum ers::_severity_t severity_t