OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
DomainError Class Reference

Domain error exception. More...

#include <DomainError.h>

Inheritance diagram for DomainError:
Inheritance graph
Collaboration diagram for DomainError:
Collaboration graph

Public Member Functions

 DomainError (const std::string &meth)
 The usual constructor.
 
 DomainError (const DomainError &)
 
virtual ~DomainError ()
 
virtual const std::string & what () const
 Return the message string for the exception.
 
virtual const std::string & where () const
 Return the name of the method or function which detected the exception.
 

Private Member Functions

 DomainError ()
 

Private Attributes

const std::string message
 
const std::string method
 

Detailed Description

Domain error exception.

Definition at line 32 of file DomainError.h.

Constructor & Destructor Documentation

◆ DomainError() [1/3]

DomainError::DomainError ( const std::string &  meth)

The usual constructor.

Definition at line 26 of file DomainError.cpp.

◆ DomainError() [2/3]

DomainError::DomainError ( const DomainError rhs)

Definition at line 28 of file DomainError.cpp.

◆ ~DomainError()

DomainError::~DomainError ( )
virtual

Definition at line 30 of file DomainError.cpp.

◆ DomainError() [3/3]

DomainError::DomainError ( )
private

Member Function Documentation

◆ what()

const std::string & OpalException::what ( ) const
virtualinherited

◆ where()

const std::string & OpalException::where ( ) const
virtualinherited

Return the name of the method or function which detected the exception.

Definition at line 33 of file OpalException.cpp.

References OpalException::method.

Referenced by Expressions::ADeferred< T >::evaluate(), Expressions::SDeferred< T >::evaluate(), main(), OpalParser::run(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), and TEST_F().

Member Data Documentation

◆ message

const std::string OpalException::message
privateinherited

Definition at line 56 of file OpalException.h.

Referenced by OpalException::what().

◆ method

const std::string OpalException::method
privateinherited

Definition at line 57 of file OpalException.h.

Referenced by OpalException::where().


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