OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Member Functions | List of all members
OpalException Class Reference

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

#include <OpalException.h>

Inheritance diagram for OpalException:
Inheritance graph
[legend]
Collaboration diagram for OpalException:
Collaboration graph
[legend]

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...
 
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...
 

Private Member Functions

 OpalException ()
 

Additional Inherited Members

- Protected Member Functions inherited from ClassicException
 ClassicException (const std::string &meth, const std::string &msg)
 The usual constructor. More...
 
 ClassicException (const ClassicException &)
 
virtual ~ClassicException ()
 
 ClassicException ()
 
- Protected Attributes inherited from ClassicException
const std::string message
 
const std::string method
 

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


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