|
OTest2
A C++ testing framework
|
An exception thrown if the expected type of a user datum is different than the actual one. More...
#include <userdata.h>


Public Member Functions | |
| UserDataWrongTypeException (const std::string &name_, const std::string &actual_, const std::string &expected_) | |
| Ctor. More... | |
| UserDataWrongTypeException (UserDataWrongTypeException &&exc_) noexcept | |
| Move ctor. More... | |
| ~UserDataWrongTypeException () | |
| Dtor. More... | |
| UserDataWrongTypeException (const UserDataWrongTypeException &)=delete | |
| UserDataWrongTypeException & | operator= (const UserDataWrongTypeException &)=delete |
| virtual std::string | reason () const override |
| Get exception reason. More... | |
Public Member Functions inherited from OTest2::Exception | |
| Exception (const Exception &)=delete | |
| Exception & | operator= (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... | |
An exception thrown if the expected type of a user datum is different than the actual one.
Definition at line 77 of file userdata.h.
|
explicit |
Ctor.
| name_ | Name of the user datum |
| actual_ | Actual type (stored in the user data object) |
| expected_ | Expected type (requested by the test description) |
Definition at line 50 of file userdata.cpp.
|
noexcept |
Move ctor.
Definition at line 60 of file userdata.cpp.
| OTest2::UserDataWrongTypeException::~UserDataWrongTypeException | ( | ) |
Dtor.
Definition at line 69 of file userdata.cpp.
|
delete |
|
delete |
|
overridevirtual |
Get exception reason.
Implements OTest2::Exception.
Definition at line 73 of file userdata.cpp.
1.8.17