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

Exception to be thrown if the dimensions of two or more objects do not agree. More...

#include <exceptions.h>

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

Public Member Functions

 DimensionMismatch ()
 
 DimensionMismatch (int expected, int provided)
 
 DimensionMismatch (const 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 the dimensions of two or more objects do not agree.

Thrown by Node::set_/get_property methods.

Constructor & Destructor Documentation

◆ DimensionMismatch() [1/3]

nest::DimensionMismatch::DimensionMismatch ( )
inline

References msg_.

◆ DimensionMismatch() [2/3]

nest::DimensionMismatch::DimensionMismatch ( int  expected,
int  provided 
)
inline

References msg_.

◆ DimensionMismatch() [3/3]

nest::DimensionMismatch::DimensionMismatch ( const std::string &  msg)
inline

References msg_.

Member Function Documentation

◆ exception_name()

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

Reimplemented from nest::KernelException.

◆ what()

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

References msg_.

Member Data Documentation

◆ msg_

std::string nest::DimensionMismatch::msg_
private

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