OTest2
A C++ testing framework
Public Member Functions | List of all members
OTest2::UserDataMissingException Class Reference

An exception thrown if user datum is missing. More...

#include <userdata.h>

Inheritance diagram for OTest2::UserDataMissingException:
Inheritance graph
[legend]
Collaboration diagram for OTest2::UserDataMissingException:
Collaboration graph
[legend]

Public Member Functions

 UserDataMissingException (const std::string &name_)
 Ctor. More...
 
 UserDataMissingException (UserDataMissingException &&exc_) noexcept
 Move ctor. More...
 
 ~UserDataMissingException ()
 Dtor. More...
 
 UserDataMissingException (const UserDataMissingException &)=delete
 
UserDataMissingExceptionoperator= (const UserDataMissingException &)=delete
 
virtual std::string reason () const override
 Get exception reason. More...
 
- Public Member Functions inherited from OTest2::Exception
 Exception (const Exception &)=delete
 
Exceptionoperator= (const Exception &)=delete
 
virtual const char * what () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from OTest2::Exception
 Exception ()
 Ctor. More...
 
 Exception (Exception &&exc_) noexcept
 Move ctor. More...
 
virtual ~Exception ()
 Dtor. More...
 

Detailed Description

An exception thrown if user datum is missing.

Definition at line 39 of file userdata.h.

Constructor & Destructor Documentation

◆ UserDataMissingException() [1/3]

OTest2::UserDataMissingException::UserDataMissingException ( const std::string &  name_)
explicit

Ctor.

Parameters
name_Name of the datum

Definition at line 29 of file userdata.cpp.

◆ UserDataMissingException() [2/3]

OTest2::UserDataMissingException::UserDataMissingException ( UserDataMissingException &&  exc_)
noexcept

Move ctor.

Definition at line 35 of file userdata.cpp.

◆ ~UserDataMissingException()

OTest2::UserDataMissingException::~UserDataMissingException ( )

Dtor.

Definition at line 42 of file userdata.cpp.

◆ UserDataMissingException() [3/3]

OTest2::UserDataMissingException::UserDataMissingException ( const UserDataMissingException )
delete

Member Function Documentation

◆ operator=()

UserDataMissingException& OTest2::UserDataMissingException::operator= ( const UserDataMissingException )
delete

◆ reason()

std::string OTest2::UserDataMissingException::reason ( ) const
overridevirtual

Get exception reason.

Returns

Implements OTest2::Exception.

Definition at line 46 of file userdata.cpp.


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