Regina 7.0 Calculation Engine
Public Member Functions | List of all members
regina::SnapPeaFatalError Class Reference

An exception that is thrown when the SnapPea kernel encounters a fatal error. More...

#include <snappea/snappeatriangulation.h>

Inheritance diagram for regina::SnapPeaFatalError:

Public Member Functions

 SnapPeaFatalError (const char *fromFunction, const char *fromFile)
 Creates a new exception, indicating where in the SnapPea kernel the error occurred. More...
 
 SnapPeaFatalError (const SnapPeaFatalError &) noexcept=default
 Creates a new copy of the given exception. More...
 
SnapPeaFatalErroroperator= (const SnapPeaFatalError &) noexcept=default
 Sets this to be a copy of the given exception. More...
 

Detailed Description

An exception that is thrown when the SnapPea kernel encounters a fatal error.

This is one of two types of exception that can be thrown from deep within the SnapPea kernel. SnapPeaFatalError is used for informative messages (the description includes a function and filename), whereas SnapPeaMemoryFull is used for out-of-memory errors (which use a stock description so they can be created without allocating further resources).

Details of the error can be accessed through the inherited member function what().

Constructor & Destructor Documentation

◆ SnapPeaFatalError() [1/2]

regina::SnapPeaFatalError::SnapPeaFatalError ( const char *  fromFunction,
const char *  fromFile 
)
inline

Creates a new exception, indicating where in the SnapPea kernel the error occurred.

Parameters
fromFunctionthe function from the SnapPea kernel in which the error occurred.
fromFilethe source file from the SnapPea kernel in which the error occurred.

◆ SnapPeaFatalError() [2/2]

regina::SnapPeaFatalError::SnapPeaFatalError ( const SnapPeaFatalError )
defaultnoexcept

Creates a new copy of the given exception.

Member Function Documentation

◆ operator=()

SnapPeaFatalError & regina::SnapPeaFatalError::operator= ( const SnapPeaFatalError )
defaultnoexcept

Sets this to be a copy of the given exception.

Returns
a reference to this exception.

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

Copyright © 1999-2021, The Regina development team
This software is released under the GNU General Public License, with some additional permissions; see the source code for details.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@maths.uq.edu.au).