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

#include <OpalException.h>

Inheritance diagram for OpalException:
Inheritance graph
Collaboration diagram for OpalException:
Collaboration graph

Public Member Functions

 OpalException (const std::string &meth, const std::string &msg)
 The usual constructor.
 
 OpalException (const OpalException &)
 
virtual ~OpalException ()
 
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

 OpalException ()
 

Private Attributes

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

Detailed Description

The base class for all OPAL exceptions.

Stores the detecting method and diagnostic message used by the top-level OPAL error handler. Concrete subclasses should keep domain-specific type information and derive from this class directly or indirectly.

Examples
/home/runner/work/PhysicsManual/PhysicsManual/.external/OPALX/src/PartBunch/BCHandler.hpp.

Definition at line 30 of file OpalException.h.

Constructor & Destructor Documentation

◆ OpalException() [1/3]

OpalException::OpalException ( const std::string &  meth,
const std::string &  msg 
)
explicit

The usual constructor.

Definition at line 24 of file OpalException.cpp.

◆ OpalException() [2/3]

OpalException::OpalException ( const OpalException rhs)

Definition at line 27 of file OpalException.cpp.

◆ ~OpalException()

OpalException::~OpalException ( )
virtual

Definition at line 29 of file OpalException.cpp.

◆ OpalException() [3/3]

OpalException::OpalException ( )
private

Member Function Documentation

◆ what()

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

◆ where()

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

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

Definition at line 33 of file OpalException.cpp.

References 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
private

Definition at line 56 of file OpalException.h.

Referenced by what().

◆ method

const std::string OpalException::method
private

Definition at line 57 of file OpalException.h.

Referenced by where().


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