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

The base class for all OPAL exceptions. More...

#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. More...
 
 OpalException (const OpalException &)
 
virtual ~OpalException ()
 
virtual const std::string & what () const
 Return the message string for the exception. More...
 
virtual const std::string & where () const
 Return the name of the method or function which detected the exception. More...
 

Protected Attributes

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

Private Member Functions

 OpalException ()
 

Detailed Description

The base class for all OPAL exceptions.

Definition at line 28 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 25 of file OpalException.cpp.

◆ OpalException() [2/3]

OpalException::OpalException ( const OpalException rhs)

Definition at line 30 of file OpalException.cpp.

◆ ~OpalException()

OpalException::~OpalException ( )
virtual

Definition at line 35 of file OpalException.cpp.

◆ OpalException() [3/3]

OpalException::OpalException ( )
private

Member Function Documentation

◆ what()

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

◆ where()

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

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

Reimplemented from ClassicException.

Definition at line 37 of file ClassicException.cpp.

Referenced by Expressions::ADeferred< T >::evaluate(), Expressions::SDeferred< T >::evaluate(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::findOrbitOfEnergy_m(), and OpalSimulation::run().

Member Data Documentation

◆ message

const std::string ClassicException::message
protectedinherited

Definition at line 60 of file ClassicException.h.

Referenced by ClassicException::what().

◆ method

const std::string ClassicException::method
protectedinherited

Definition at line 61 of file ClassicException.h.

Referenced by ClassicException::where().


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