OTest2
A C++ testing framework
Public Member Functions | Protected Member Functions | List of all members
OTest2::Exception Class Referenceabstract

Generic OTest2 exception. More...

#include <exc.h>

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

Public Member Functions

 Exception (const Exception &)=delete
 
Exceptionoperator= (const Exception &)=delete
 
virtual const char * what () const noexcept
 
virtual std::string reason () const =0
 Get exception reason. More...
 

Protected Member Functions

 Exception ()
 Ctor. More...
 
 Exception (Exception &&exc_) noexcept
 Move ctor. More...
 
virtual ~Exception ()
 Dtor. More...
 

Detailed Description

Generic OTest2 exception.

Definition at line 31 of file exc.h.

Constructor & Destructor Documentation

◆ Exception() [1/3]

OTest2::Exception::Exception ( )
protected

Ctor.

Definition at line 24 of file exc.cpp.

◆ Exception() [2/3]

OTest2::Exception::Exception ( Exception &&  exc_)
protectednoexcept

Move ctor.

Definition at line 28 of file exc.cpp.

◆ ~Exception()

OTest2::Exception::~Exception ( )
protectedvirtual

Dtor.

Definition at line 33 of file exc.cpp.

◆ Exception() [3/3]

OTest2::Exception::Exception ( const Exception )
delete

Member Function Documentation

◆ operator=()

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

◆ reason()

virtual std::string OTest2::Exception::reason ( ) const
pure virtual

◆ what()

const char * OTest2::Exception::what ( ) const
virtualnoexcept

Definition at line 37 of file exc.cpp.


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