MessageDefinitionParserException.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <swarmros/Exception.h>
4 
6 {
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 }
Exception base class for swarmros exceptions.
const char * path() const
Get the path of the definition file.
Exception thrown while parsing a message definition file.
MessageDefinitionParserException(const char *message, const std::string &path, uint32_t line)
Constructor.


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48