NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Private Attributes | List of all members
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:
nest::KernelException SLIException

Public Member Functions

 DimensionMismatch ()
 
 DimensionMismatch (int expected, int provided)
 
 ~DimensionMismatch () throw ()
 
std::string message ()
 Returns a diagnostic message or empty string. More...
 
- Public Member Functions inherited from nest::KernelException
 KernelException ()
 
 KernelException (char const *const what)
 
virtual ~KernelException () throw ()
 
- Public Member Functions inherited from SLIException
 SLIException (char const *const what)
 
virtual ~SLIException () throw ()
 
virtual const char * what () const throw ()
 Returns the SLI error name, used by raiseerror. More...
 

Private Attributes

int expected_
 
int provided_
 

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

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

Member Function Documentation

std::string nest::DimensionMismatch::message ( )
virtual

Returns a diagnostic message or empty string.

This function is not const, because it may clear internal data fields.

Reimplemented from nest::KernelException.

Referenced by nest::Scheduler::prepare_nodes().

Member Data Documentation

int nest::DimensionMismatch::expected_
private
int nest::DimensionMismatch::provided_
private

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