Class NullReferenceError

Inheritance Relationships

Base Types

Class Documentation

class NullReferenceError : public dds::core::Exception, public std::runtime_error

Exception: Application used a null reference.

Very likely, the used DDS object is a dds::core::null object.

dds::domain::DomainParticipant participant = dds::core::null;
try {
    participant.domain_id();
} catch (const dds::core::NullReferenceError& e) {
    std::cout << e.what() << std::endl;
}