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

The abstract base class for all OPALX arithmetic exceptions. More...

#include <ArithmeticError.h>

Inheritance diagram for ArithmeticError:
Inheritance graph
Collaboration diagram for ArithmeticError:
Collaboration graph

Public Member Functions

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.
 

Protected Member Functions

 ArithmeticError (const std::string &meth, const std::string &msg)
 The usual constructor.
 
 ArithmeticError (const ArithmeticError &)
 
virtual ~ArithmeticError ()
 

Private Member Functions

 ArithmeticError ()
 

Private Attributes

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

Detailed Description

The abstract base class for all OPALX arithmetic exceptions.

Definition at line 33 of file ArithmeticError.h.

Constructor & Destructor Documentation

◆ ArithmeticError() [1/3]

ArithmeticError::ArithmeticError ( const std::string &  meth,
const std::string &  msg 
)
protected

The usual constructor.

Definition at line 26 of file ArithmeticError.cpp.

◆ ArithmeticError() [2/3]

ArithmeticError::ArithmeticError ( const ArithmeticError rhs)
protected

Definition at line 29 of file ArithmeticError.cpp.

◆ ~ArithmeticError()

ArithmeticError::~ArithmeticError ( )
protectedvirtual

Definition at line 31 of file ArithmeticError.cpp.

◆ ArithmeticError() [3/3]

ArithmeticError::ArithmeticError ( )
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: