OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
dds::core::IllegalOperationError Class Referenceabstract

Exception: An operation was invoked on an inappropriate object or at an inappropriate time. More...

#include "Exception.hpp"

Inheritance diagram for dds::core::IllegalOperationError:
Inheritance graph

Public Member Functions

virtual const char * what () const =0 throw ()
 

Detailed Description

Exception: An operation was invoked on an inappropriate object or at an inappropriate time.

This is determined by policies set by the specification or the Service implementation.

There is no precondition that could be changed to make the operation succeed.

Definition at line 149 of file Exception.hpp.

Member Function Documentation

◆ what()

virtual const char* dds::core::Exception::what ( ) const
throw (
)
pure virtualinherited

Retrieve information about the exception that was thrown.

Example

try {
// Do something that will trigger a dds exception, like:
dds::domain::DomainParticipant participant = dds::core::null;
participant.domain_id();
} catch (const dds::core::Exception& e) {
std::cout << e.what() << std::endl;
}

Exception information (of the NullReferenceError in this case)

Null reference: Reference[157] == dds::core::null
========================================================================================
Date : Wed Oct 21 19:28:00 CET 2015
Node : DeLorean
Process : flux_capacitor <15423>
Thread : mr_fusion b6f25700
Internals : ReferenceImpl.hpp/157/V6.6.0
----------------------------------------------------------------------------------------
Report : Null reference: Reference[157] == dds::core::null
Internals : dds::core::Reference<DELEGATE>::delegate/ReferenceImpl.hpp/157
Returns
Exception information

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