BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ers/ers-00-00-03/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
23class ParseIssue: public Issue {
24protected:
25 ParseIssue(const Context &c, severity_t s) ;
26public:
27 static const char * const OFFENDING_LINE_KEY ;
28 static const char * const OFFENDING_LINE_NUMBER_KEY ;
29 static const char * const PARSE_ISSUE_CLASS_NAME ;
30 void offending_line(const std::string &line) ;
31 void offending_line_number(int line);
32 void file_name(std::string filename);
33 ParseIssue() ;
34 ParseIssue(const Context &c,severity_t s, const std::string &message);
35 ParseIssue(const Context &c,severity_t s, const std::string &message, const std::string &line);
36 virtual const char* get_class_name() const throw() ;
37} ; // ParseIssue
38
39} // ers
40
41#define ERS_PARSE_ERROR(message,...) ers::ParseIssue(ERS_HERE,ers::error,__VA_ARGS__)
42
43#endif
44
XmlRpcServer s
Definition: HelloServer.cpp:11
Source context for Issue.
const std::string & message() const
Message.
static const char *const OFFENDING_LINE_NUMBER_KEY
static const char *const OFFENDING_LINE_KEY
void file_name(std::string filename)
Definition: ParseIssue.cxx:46
void offending_line(const std::string &line)
Definition: ParseIssue.cxx:38
void offending_line_number(int line)
Definition: ParseIssue.cxx:42
virtual const char * get_class_name() const
Get key for class (used for serialisation)
Definition: ParseIssue.cxx:34
static const char *const PARSE_ISSUE_CLASS_NAME
enum ers::_severity_t severity_t