ObjectNotExistException

Exception to indicate that a (twoway) request was sent to an object with an unknown identity. More...

#include <unity/scopes/ScopeExceptions.h>

Inheritance diagram for unity::scopes::ObjectNotExistException:
Inheritance graph
[legend]

Public Member Functions

 ObjectNotExistException (std::string const &reason, std::string const &id)
 Constructs the exception. More...
 
virtual std::exception_ptr self () const override
 Returns a std::exception_ptr to this. More...
 
virtual std::string id () const
 Returns the identity of the non-existent object. More...
 
Copy and assignment

Copy constructor and assignment operator have the usual value semantics.

 ObjectNotExistException (ObjectNotExistException const &)
 
ObjectNotExistExceptionoperator= (ObjectNotExistException const &)
 
- Public Member Functions inherited from unity::scopes::MiddlewareException
 MiddlewareException (std::string const &reason)
 Constructs the exception. More...
 
 MiddlewareException (MiddlewareException const &)
 
MiddlewareExceptionoperator= (MiddlewareException const &)
 

Detailed Description

Exception to indicate that a (twoway) request was sent to an object with an unknown identity.

Constructor & Destructor Documentation

unity::scopes::ObjectNotExistException::ObjectNotExistException ( std::string const &  reason,
std::string const &  id 
)
explicit

Constructs the exception.

Parameters
reasonFurther details about the cause of the exception.
idThe identity of the unknown object.

Member Function Documentation

string unity::scopes::ObjectNotExistException::id ( ) const
virtual

Returns the identity of the non-existent object.

Returns
The identity of the non-existent object.
exception_ptr unity::scopes::ObjectNotExistException::self ( ) const
overridevirtual

Returns a std::exception_ptr to this.

Returns
std::exception_ptr to this.

Reimplemented from unity::scopes::MiddlewareException.