OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
ArithmeticError Class Reference

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

#include <ArithmeticError.h>

Inheritance diagram for ArithmeticError:
Collaboration diagram for ArithmeticError:

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

Protected Attributes

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

Private Member Functions

 ArithmeticError ()

Detailed Description

The abstract base class for all CLASSIC arithmetic exceptions.

Definition at line 33 of file ArithmeticError.h.

Constructor & Destructor Documentation

◆ ArithmeticError() [1/3]

◆ ArithmeticError() [2/3]

ArithmeticError::ArithmeticError ( const ArithmeticError & rhs)
protected

Definition at line 34 of file ArithmeticError.cpp.

References ArithmeticError(), and ClassicException::ClassicException().

Here is the call graph for this function:

◆ ~ArithmeticError()

ArithmeticError::~ArithmeticError ( )
protectedvirtual

Definition at line 39 of file ArithmeticError.cpp.

◆ ArithmeticError() [3/3]

ArithmeticError::ArithmeticError ( )
private

Member Function Documentation

◆ what()

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

Return the message string for the exception.

Reimplemented in EarlyLeaveException, and OpalException.

Definition at line 42 of file ClassicException.cpp.

References message.

Referenced by PySquarePolynomialMap::exact_solve(), PySquarePolynomialMap::least_squares(), OpalParser::readStatement(), and OpalParser::run().

◆ where()

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

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

Reimplemented in EarlyLeaveException, and OpalException.

Definition at line 47 of file ClassicException.cpp.

References method.

Referenced by OpalParser::run().

Member Data Documentation

◆ message

const std::string ClassicException::message
protectedinherited

Definition at line 60 of file ClassicException.h.

Referenced by ClassicException(), what(), and EarlyLeaveException::what().

◆ method

const std::string ClassicException::method
protectedinherited

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