Quantum++  v1.0-rc3
A modern C++11 quantum computing library
qpp::exception::CustomException Class Reference

Custom exception. More...

#include <classes/exception.h>

Inheritance diagram for qpp::exception::CustomException:
Collaboration diagram for qpp::exception::CustomException:

Public Member Functions

 CustomException (const std::string &where, const std::string &what)
 
- Public Member Functions inherited from qpp::exception::Exception
 Exception (const std::string &where)
 Constructs an exception. More...
 
virtual const char * what () const noexcept override
 Overrides std::exception::what() More...
 

Private Member Functions

std::string type_description () const override
 Exception type description. More...
 

Private Attributes

std::string what_ {}
 

Detailed Description

Custom exception.

Custom exception, the user must provide a custom message

Constructor & Destructor Documentation

◆ CustomException()

qpp::exception::CustomException::CustomException ( const std::string &  where,
const std::string &  what 
)
inline

Member Function Documentation

◆ type_description()

std::string qpp::exception::CustomException::type_description ( ) const
inlineoverrideprivatevirtual

Exception type description.

Returns
Exception type description

Implements qpp::exception::Exception.

Member Data Documentation

◆ what_

std::string qpp::exception::CustomException::what_ {}
private

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