Robot Raconteur Core C++ Library
Loading...
Searching...
No Matches
RobotRaconteur::ExceptionDefinition Class Reference

Class for exception definitions. More...

#include <ServiceDefinition.h>

Public Member Functions

 ExceptionDefinition (const boost::shared_ptr< ServiceDefinition > &service)
 Construct a new empty ExceptionDefinition object.
std::string ToString ()
 Convert exception definition to string.
void FromString (boost::string_ref s, const ServiceDefinitionParseInfo *parse_info=NULL)
 Parse an exception definition from string.
void Reset ()
 Clear all fields.

Public Attributes

std::string Name
 The name of the exception.
std::string DocString
 Documentation string for the exception.
RR_WEAK_PTR< ServiceDefinitionservice
 The parent service definition.
ServiceDefinitionParseInfo ParseInfo
 Parsing diagnostic information.

Detailed Description

Class for exception definitions.

See service_definitions.md for more information.

Constructor & Destructor Documentation

◆ ExceptionDefinition()

RobotRaconteur::ExceptionDefinition::ExceptionDefinition ( const boost::shared_ptr< ServiceDefinition > & service)

Construct a new empty ExceptionDefinition object.

Must be constructed with boost::make_shared<ExceptionDefinition>()

Parameters
serviceThe parent service definition

Member Function Documentation

◆ FromString()

void RobotRaconteur::ExceptionDefinition::FromString ( boost::string_ref s,
const ServiceDefinitionParseInfo * parse_info = NULL )

Parse an exception definition from string.

Parameters
sThe exception definition string
parse_infoParsing diagnostic information

◆ ToString()

std::string RobotRaconteur::ExceptionDefinition::ToString ( )

Convert exception definition to string.

Returns
std::string The exception definition string

Member Data Documentation

◆ ParseInfo

ServiceDefinitionParseInfo RobotRaconteur::ExceptionDefinition::ParseInfo

Parsing diagnostic information.

The ParseInfo field is populated by FromString()


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