BOSS
7.1.2
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
15
namespace
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
public
:
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
s
XmlRpcServer s
Definition
HelloServer.cpp:11
ers::Context
Source context for Issue.
Definition
Context.h:42
ers::Issue
Root Issue class.
Definition
ers/ers-00-00-03/ers/Issue.h:40
ers::Issue::message
const std::string & message() const
Message.
Definition
ers/ers-00-00-03/src/Issue.cxx:689
ers::ParseIssue
Data parsing error.
Definition
ParseIssue.h:23
ers::ParseIssue::PARSE_ISSUE_CLASS_NAME
static const char *const PARSE_ISSUE_CLASS_NAME
Definition
ParseIssue.h:29
ers::ParseIssue::file_name
void file_name(std::string filename)
Definition
ParseIssue.cxx:46
ers::ParseIssue::ParseIssue
ParseIssue()
Definition
ParseIssue.cxx:21
ers::ParseIssue::offending_line
void offending_line(const std::string &line)
Definition
ParseIssue.cxx:38
ers::ParseIssue::offending_line_number
void offending_line_number(int line)
Definition
ParseIssue.cxx:42
ers::ParseIssue::get_class_name
virtual const char * get_class_name() const
Get key for class (used for serialisation)
Definition
ParseIssue.cxx:34
ers::ParseIssue::OFFENDING_LINE_KEY
static const char *const OFFENDING_LINE_KEY
Definition
ParseIssue.h:27
ers::ParseIssue::OFFENDING_LINE_NUMBER_KEY
static const char *const OFFENDING_LINE_NUMBER_KEY
Definition
ParseIssue.h:28
Issue.h
ers
Definition
Event/ers/ers-00-00-03/ers/Assertion.h:20
ers::severity_t
enum ers::_severity_t severity_t
7.1.2
Event
ers
ers-00-00-03
ers
ParseIssue.h
Generated by
1.12.0