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

Exception to be thrown if a Time object should be a multiple of another. More...

#include <exceptions.h>

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

Public Member Functions

 TimeMultipleRequired (const std::string &model, const std::string &name_a, const Time &value_a, const std::string &name_b, const Time &value_b)
 
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 if a Time object should be a multiple of another.

See also
StepMultipleRequired

Constructor & Destructor Documentation

◆ TimeMultipleRequired()

nest::TimeMultipleRequired::TimeMultipleRequired ( const std::string &  model,
const std::string &  name_a,
const Time &  value_a,
const std::string &  name_b,
const Time &  value_b 
)
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
name_aname of dividend
value_avalue of dividend
name_bname of divisor
value_bvalue of divisor

References msg_.

Member Function Documentation

◆ exception_name()

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

Reimplemented from nest::KernelException.

◆ what()

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

References msg_.

Member Data Documentation

◆ msg_

std::string nest::TimeMultipleRequired::msg_
private

Referenced by TimeMultipleRequired(), and what().


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