BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ers/include/ers/ParseIssue.h
Go to the documentation of this file.
1/*
2 * ParseIssue.h
3 * ers
4 *
5 * Created by Matthias Wiesmann on 17.12.04.
6 * Copyright 2004 CERN. All rights reserved.
7 *
8 */
9
10#ifndef ERS_PARSE_ISSUE
11#define ERS_PARSE_ISSUE
12
13#include "ers/Issue.h"
14
15namespace ers {
16
17 /** This class represents an error while parsing data.
18 * \author Matthias Wiesmann
19 * \version 1.0
20 * \brief Data parsing error
21 */
22
23 class ParseIssue : public Issue {
24 protected:
25 ParseIssue( const Context& c, severity_t s );
26
27 public:
28 static const char* const OFFENDING_LINE_KEY;
29 static const char* const OFFENDING_LINE_NUMBER_KEY;
30 static const char* const PARSE_ISSUE_CLASS_NAME;
31 void offending_line( const std::string& line );
32 void offending_line_number( int line );
33 void file_name( std::string filename );
34 ParseIssue();
35 ParseIssue( const Context& c, severity_t s, const std::string& message );
36 ParseIssue( const Context& c, severity_t s, const std::string& message,
37 const std::string& line );
38 virtual const char* get_class_name() const throw();
39 }; // ParseIssue
40
41} // namespace ers
42
43#define ERS_PARSE_ERROR( message, ... ) ers::ParseIssue( ERS_HERE, ers::error, __VA_ARGS__ )
44
45#endif
XmlRpcServer s
Source context for Issue.
const std::string & message() const
Message.
Issue(const Context &context, severity_t s)
Constructor for subclasses.
static const char *const OFFENDING_LINE_NUMBER_KEY
static const char *const OFFENDING_LINE_KEY
void file_name(std::string filename)
ParseIssue(const Context &c, severity_t s)
void offending_line(const std::string &line)
void offending_line_number(int line)
virtual const char * get_class_name() const
Get key for class (used for serialisation).
static const char *const PARSE_ISSUE_CLASS_NAME
enum ers::_severity_t severity_t