CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
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
Source context for Issue.
Definition Context.h:42
Root Issue class.
const std::string & message() const
Message.
Data parsing error.
Definition ParseIssue.h:23
static const char *const PARSE_ISSUE_CLASS_NAME
Definition ParseIssue.h:29
void file_name(std::string filename)
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 OFFENDING_LINE_KEY
Definition ParseIssue.h:27
static const char *const OFFENDING_LINE_NUMBER_KEY
Definition ParseIssue.h:28
enum ers::_severity_t severity_t