Public Member Functions | Private Attributes | List of all members
swarmros::introspection::MessageDefinitionParserException Class Reference

Exception thrown while parsing a message definition file. More...

#include <MessageDefinitionParserException.h>

Inheritance diagram for swarmros::introspection::MessageDefinitionParserException:
Inheritance graph
[legend]

Public Member Functions

uint32_t line () const
 Get the affected line. More...
 
 MessageDefinitionParserException (const char *message, const std::string &path, uint32_t line)
 Constructor. More...
 
const char * path () const
 Get the path of the definition file. More...
 
- Public Member Functions inherited from swarmio::Exception
 Exception (const char *message)
 Construct a new Exception. More...
 
const char * what () const noexceptoverride
 Get the error message. More...
 

Private Attributes

uint32_t _line
 Affected line number. More...
 
std::string _path
 Path of the file. More...
 

Detailed Description

Exception thrown while parsing a message definition file.

Definition at line 12 of file MessageDefinitionParserException.h.

Constructor & Destructor Documentation

swarmros::introspection::MessageDefinitionParserException::MessageDefinitionParserException ( const char *  message,
const std::string &  path,
uint32_t  line 
)
inline

Constructor.

Parameters
messageMessage
pathPath
lineLine

Definition at line 37 of file MessageDefinitionParserException.h.

Member Function Documentation

uint32_t swarmros::introspection::MessageDefinitionParserException::line ( ) const
inline

Get the affected line.

Returns
uint32_t

Definition at line 55 of file MessageDefinitionParserException.h.

const char* swarmros::introspection::MessageDefinitionParserException::path ( ) const
inline

Get the path of the definition file.

Returns
const char*

Definition at line 45 of file MessageDefinitionParserException.h.

Member Data Documentation

uint32_t swarmros::introspection::MessageDefinitionParserException::_line
private

Affected line number.

Definition at line 26 of file MessageDefinitionParserException.h.

std::string swarmros::introspection::MessageDefinitionParserException::_path
private

Path of the file.

Definition at line 20 of file MessageDefinitionParserException.h.


The documentation for this class was generated from the following file:


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