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

Exception thrown wen an expected MessageElement is not found. More...

#include <Error.h>

Inheritance diagram for RobotRaconteur::MessageElementNotFoundException:
RobotRaconteur::RobotRaconteurException

Public Member Functions

 MessageElementNotFoundException (const std::string &message, std::string sub_name="", const boost::intrusive_ptr< RRValue > &param_=boost::intrusive_ptr< RRValue >())
 Construct a MessageElementNotFoundException.
virtual std::string ToString ()
 Returns a string representing the exception.

Public Attributes

MessageErrorType ErrorCode
 Predefined error code.
std::string Error
 Name of the error.
std::string Message
 Message to pass to the user.
std::string ErrorSubName
 An optional sub_name to further categorize the exception.
boost::intrusive_ptr< RRValueErrorParam
 An optional parameter.

Detailed Description

Exception thrown wen an expected MessageElement is not found.

This exception is thrown when an expected field or parameter is not found.

Error code MessageErrorType_MessageElementNotfound (15)

Constructor & Destructor Documentation

◆ MessageElementNotFoundException()

RobotRaconteur::MessageElementNotFoundException::MessageElementNotFoundException ( const std::string & message,
std::string sub_name = "",
const boost::intrusive_ptr< RRValue > & param_ = boost::intrusive_ptr< RRValue >() )

Construct a MessageElementNotFoundException.

Parameters
messageMessage for the user
sub_nameOptional error sub_name
param_Optional error param

Member Function Documentation

◆ ToString()

virtual std::string RobotRaconteur::RobotRaconteurException::ToString ( )
virtualinherited

Returns a string representing the exception.

Returns
std::string

Member Data Documentation

◆ Error

std::string RobotRaconteur::RobotRaconteurException::Error
inherited

Name of the error.

Name corresponding to predefined error code, or a user defined error type

◆ ErrorCode

MessageErrorType RobotRaconteur::RobotRaconteurException::ErrorCode
inherited

Predefined error code.

Error code that specifies the type of error

◆ ErrorParam

boost::intrusive_ptr<RRValue> RobotRaconteur::RobotRaconteurException::ErrorParam
inherited

An optional parameter.

Use this placeholder if data needs to be passed with the exception

◆ ErrorSubName

std::string RobotRaconteur::RobotRaconteurException::ErrorSubName
inherited

An optional sub_name to further categorize the exception.

The sub_name should follow the Robot Raconteur naming rules. It should either be a single name or a fully qualified name using service definition naming rules

◆ Message

std::string RobotRaconteur::RobotRaconteurException::Message
inherited

Message to pass to the user.

Human readable message to pass to the user


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