Cyclone ISO C++ API Reference Guide
dds::core::IllegalOperationError Class Referenceabstract

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

#include "Exception.hpp"

Inherits dds::core::Exception, and std::logic_error.

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:
dds::domain::DomainParticipant::domain_id
uint32_t domain_id() const
dds::core::Reference
Base class for reference-counted objects.
Definition: Reference.hpp:94
dds::core::Exception::what
virtual const char * what() const =0
dds::core::Exception
Exception: base class for specified DDS Exceptions.
Definition: Exception.hpp:64
dds::domain::DomainParticipant
A DomainParticipant represents the local membership of the application in a Domain.
Definition: DomainParticipant.hpp:65