NEST main@caf0ae8
 
Loading...
Searching...
No Matches
nest::InvalidDefaultResolution Class Reference

Exception to be thrown on prototype construction if Time objects incompatible. More...

#include <exceptions.h>

Inheritance diagram for nest::InvalidDefaultResolution:
[legend]
Collaboration diagram for nest::InvalidDefaultResolution:
[legend]

Public Member Functions

 InvalidDefaultResolution (const std::string &model, const std::string &property, const Time &value)
 
const char * what () const noexcept override
 
std::string exception_name () const override
 
- Public Member Functions inherited from nest::KernelException
 KernelException ()
 
 KernelException (const std::string &msg)
 

Private Attributes

std::string msg_
 

Detailed Description

Exception to be thrown on prototype construction if Time objects incompatible.

This exception is to be thrown by the default constructor of nodes which require that Time objects have properties wrt resolution.

See also
InvalidTimeInModel

Constructor & Destructor Documentation

◆ InvalidDefaultResolution()

nest::InvalidDefaultResolution::InvalidDefaultResolution ( const std::string &  model,
const std::string &  property,
const Time &  value 
)
inline
Note
model should be passed from get_name() to ensure that names of copied models are reported correctly.
Parameters
modelname of model causing problem
propertyname of property conflicting
valuevalue of property conflicting

References nest::Time::get_resolution(), and msg_.

Here is the call graph for this function:

Member Function Documentation

◆ exception_name()

std::string nest::InvalidDefaultResolution::exception_name ( ) const
inlineoverridevirtual

Reimplemented from nest::KernelException.

◆ what()

const char * nest::InvalidDefaultResolution::what ( ) const
inlineoverridenoexcept

References msg_.

Member Data Documentation

◆ msg_

std::string nest::InvalidDefaultResolution::msg_
private

Referenced by InvalidDefaultResolution(), and what().


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