schwz  Generated automatically from develop
Public Member Functions | List of all members
MetisError Class Reference

MetisError is thrown when a METIS routine throws a non-zero error code. More...

#include <exception.hpp>

Collaboration diagram for MetisError:
[legend]

Public Member Functions

 MetisError (const std::string &file, int line, const std::string &func, int error_code)
 Initializes a METIS error. More...
 
- Public Member Functions inherited from Error
 Error (const std::string &file, int line, const std::string &what)
 Initializes an error. More...
 
virtual const char * what () const noexcept override
 Returns a human-readable string with a more detailed description of the error.
 

Detailed Description

MetisError is thrown when a METIS routine throws a non-zero error code.

Constructor & Destructor Documentation

◆ MetisError()

MetisError::MetisError ( const std::string &  file,
int  line,
const std::string &  func,
int  error_code 
)
inline

Initializes a METIS error.

Parameters
fileThe name of the offending source file
lineThe source code line number where the error occurred
funcThe name of the METIS routine that failed
error_codeThe resulting METIS error code

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