Ginkgo  Generated from pipelines/1589998975 branch based on develop. Ginkgo version 1.10.0
A numerical linear algebra library targeting many-core architectures
Public Member Functions | List of all members
gko::InvalidStateError Class Reference

Exception thrown if an object is in an invalid state. More...

#include <ginkgo/core/base/exception.hpp>

Inheritance diagram for gko::InvalidStateError:
[legend]
Collaboration diagram for gko::InvalidStateError:
[legend]

Public Member Functions

 InvalidStateError (const std::string &file, int line, const std::string &func, const std::string &clarification)
 Initializes an invalid state error. More...
 
- Public Member Functions inherited from gko::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

Exception thrown if an object is in an invalid state.

Constructor & Destructor Documentation

◆ InvalidStateError()

gko::InvalidStateError::InvalidStateError ( const std::string &  file,
int  line,
const std::string &  func,
const std::string &  clarification 
)
inline

Initializes an invalid state error.

Parameters
fileThe name of the offending source file
lineThe source code line number where the error occurred
funcThe function name where the error occurred
clarificationA message describing the invalid state

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