Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
Public Member Functions | Protected Attributes | List of all members
SR::Exception Class Reference

Class of exception which indicates a general SR logic error. More...

#include <exception.h>

Inheritance diagram for SR::Exception:
[legend]
Collaboration diagram for SR::Exception:
[legend]

Public Member Functions

 Exception (const char *message)
 Constructor (C strings). More...
 
 Exception (const std::string &message)
 Constructor (C++ STL strings). More...
 
virtual ~Exception () throw ()
 Destructor. Virtual to allow for subclassing. More...
 
virtual const char * what () const throw ()
 Returns a pointer to the (constant) error description. More...
 

Protected Attributes

std::string errorMessage
 Error message. More...
 

Detailed Description

Class of exception which indicates a general SR logic error.

Suppressing warning because if we don't want to export everything then solving the underlying problem requires modification of the API Warning Description: non - DLL-interface class 'class_1' used as base for DLL-interface class 'class_2' Candidate for deprecation

Constructor & Destructor Documentation

◆ Exception() [1/2]

SR::Exception::Exception ( const char *  message)
inlineexplicit

Constructor (C strings).

Parameters
messageC-style string error message.

◆ Exception() [2/2]

SR::Exception::Exception ( const std::string &  message)
inlineexplicit

Constructor (C++ STL strings).

Parameters
messageThe error message.

◆ ~Exception()

virtual SR::Exception::~Exception ( )
throw (
)
inlinevirtual

Destructor. Virtual to allow for subclassing.

Member Function Documentation

◆ what()

virtual const char * SR::Exception::what ( ) const
throw (
)
inlinevirtual

Returns a pointer to the (constant) error description.

Returns
A pointer to a const char* to represent the error description.

Member Data Documentation

◆ errorMessage

std::string SR::Exception::errorMessage
protected

Error message.

Suppressing warning because if we don't want to export everything then solving the underlying problem requires modification of the API Warning Description: 'type' : class 'type1' needs to have dll-interface to be used by clients of class 'type2' Candidate for deprecation


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