RTI Connext Modern C++ API  Version 7.0.0
dds::core::Error Class Reference

A generic, unspecified Error. More...

#include <Exception.hpp>

Inheritance diagram for dds::core::Error:
dds::core::Exception

Public Member Functions

 Error ()
 Create an Error exception with no message. More...
 
 Error (const std::string &msg)
 Create an Error exception with a message. More...
 
virtual const char * what () const throw ()
 Access the message contained in this Error exception. More...
 

Detailed Description

A generic, unspecified Error.

Inherits also from std::exception

Constructor & Destructor Documentation

◆ Error() [1/2]

dds::core::Error::Error ( )

Create an Error exception with no message.

◆ Error() [2/2]

dds::core::Error::Error ( const std::string &  msg)
explicit

Create an Error exception with a message.

Parameters
msgThe message to create the Error with.

Member Function Documentation

◆ what()

virtual const char* dds::core::Error::what ( ) const
throw (
)
virtual

Access the message contained in this Error exception.

Returns
The message.

Implements dds::core::Exception.

Referenced by dds::sub::LoanedSamples< T >::LoanedSamples().