NEST main@f146f75
Loading...
Searching...
No Matches
nest::BadParameter Class Reference

Exception to be thrown if a parameter cannot be set. More...

#include <exceptions.h>

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

Public Member Functions

 BadParameter ()
 BadParameter (std::string msg)
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 parameter cannot be set.

Thrown by Node::set_/get_property methods.

Constructor & Destructor Documentation

◆ BadParameter() [1/2]

nest::BadParameter::BadParameter ( )
inline
Parameters
detailederror message

References nest::KernelException::KernelException(), and msg_.

Here is the call graph for this function:

◆ BadParameter() [2/2]

nest::BadParameter::BadParameter ( std::string msg)
inline

References nest::KernelException::KernelException(), and msg_.

Here is the call graph for this function:

Member Function Documentation

◆ exception_name()

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

Reimplemented from nest::KernelException.

◆ what()

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

References msg_.

Member Data Documentation

◆ msg_

std::string nest::BadParameter::msg_
private

Referenced by BadParameter(), BadParameter(), and what().


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