NotFoundException

Exception to indicate that an object wasn't found by a lookup function. More...

#include <unity/scopes/ScopeExceptions.h>

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

Public Member Functions

 NotFoundException (std::string const &reason, std::string const &name)
 Constructs the exception. More...
 
virtual std::exception_ptr self () const override
 Returns a std::exception_ptr to this. More...
 
virtual std::string name () const
 Returns the name that was passed to the constructor. More...
 
Copy and assignment

Copy constructor and assignment operator have the usual value semantics.

 NotFoundException (NotFoundException const &)
 
NotFoundExceptionoperator= (NotFoundException const &)
 

Detailed Description

Exception to indicate that an object wasn't found by a lookup function.

Constructor & Destructor Documentation

unity::scopes::NotFoundException::NotFoundException ( std::string const &  reason,
std::string const &  name 
)
explicit

Constructs the exception.

Parameters
reasonFurther details about the cause of the exception.
nameThe name of the object that was not found.

Member Function Documentation

string unity::scopes::NotFoundException::name ( ) const
virtual

Returns the name that was passed to the constructor.

Returns
The name that was passed to the constructor.
exception_ptr unity::scopes::NotFoundException::self ( ) const
overridevirtual

Returns a std::exception_ptr to this.

Returns
std::exception_ptr to this.