InvalidStateError Class Reference

InvalidStateError Class Reference#

Reference API: gko::InvalidStateError Class Reference
Reference API
gko::InvalidStateError Class Reference

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

Inheritance diagram for gko::InvalidStateError:
[legend]

Public Member Functions

 InvalidStateError (const std::string &file, int line, const std::string &func, const std::string &clarification)
 
- Public Member Functions inherited from gko::Error
 Error (const std::string &file, int line, const std::string &what)
 
virtual const char * what () const noexcept override
 

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: