Main Page
Namespaces
Classes
Files
File List
File Members
swarmros
include
swarmros
introspection
MessageDefinitionParserException.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
swarmros/Exception.h
>
4
5
namespace
swarmros::introspection
6
{
12
class
MessageDefinitionParserException
:
public
Exception
13
{
14
private
:
15
20
std::string
_path
;
21
26
uint32_t
_line
;
27
28
public
:
29
37
MessageDefinitionParserException
(
const
char
*
message
,
const
std::string&
path
, uint32_t
line
)
38
:
Exception
(message), _path(path), _line(line) { }
39
45
const
char
*
path
()
const
46
{
47
return
_path.c_str();
48
}
49
55
uint32_t
line
()
const
56
{
57
return
_line
;
58
}
59
};
60
}
swarmros::introspection::MessageDefinitionParserException::_line
uint32_t _line
Affected line number.
Definition:
MessageDefinitionParserException.h:26
swarmros::Exception
Exception base class for swarmros exceptions.
Definition:
swarmros/include/swarmros/Exception.h:11
swarmros::introspection::MessageDefinitionParserException::path
const char * path() const
Get the path of the definition file.
Definition:
MessageDefinitionParserException.h:45
logparser.message
message
Definition:
logparser.py:108
swarmros::introspection
Definition:
ArrayField.h:5
swarmros::introspection::MessageDefinitionParserException
Exception thrown while parsing a message definition file.
Definition:
MessageDefinitionParserException.h:12
swarmros::introspection::MessageDefinitionParserException::MessageDefinitionParserException
MessageDefinitionParserException(const char *message, const std::string &path, uint32_t line)
Constructor.
Definition:
MessageDefinitionParserException.h:37
swarmros::introspection::MessageDefinitionParserException::_path
std::string _path
Path of the file.
Definition:
MessageDefinitionParserException.h:20
Exception.h
swarmros::introspection::MessageDefinitionParserException::line
uint32_t line() const
Get the affected line.
Definition:
MessageDefinitionParserException.h:55
swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48