MoCSI API Reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DependencyError< ModuleType > Class Template Reference

Error class to throw when a module chain has circular or missing dependencies. Inherits from std::exception. More...

#include <ChainManager.h>

Inheritance diagram for DependencyError< ModuleType >:
Inheritance graph
Collaboration diagram for DependencyError< ModuleType >:
Collaboration graph

Public Member Functions

 DependencyError (const std::vector< std::shared_ptr< ModuleType > > unresolved_dependency_modules)
 
const charwhat () const noexcept override
 Supplies the error message as a c-style string/char array.
 
 ~DependencyError () override=default
 

Detailed Description

template<typename ModuleType>
requires requires(const ModuleType& module) { module.getNameLocal(); { module.getNameLocal() } -> std::constructible_from<std::string>; }
class DependencyError< ModuleType >

Error class to throw when a module chain has circular or missing dependencies. Inherits from std::exception.

Constructor & Destructor Documentation

◆ DependencyError()

template<typename ModuleType >
DependencyError< ModuleType >::DependencyError ( const std::vector< std::shared_ptr< ModuleType > >  unresolved_dependency_modules)
inline

◆ ~DependencyError()

template<typename ModuleType >
DependencyError< ModuleType >::~DependencyError ( )
overridedefault

Member Function Documentation

◆ what()

template<typename ModuleType >
const char * DependencyError< ModuleType >::what ( ) const
inlineoverridenoexcept

Supplies the error message as a c-style string/char array.


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