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

Exception to be thrown by the event handler of a node if it receives an event it cannot handle. More...

#include <exceptions.h>

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

Public Member Functions

 UnexpectedEvent ()
 
 UnexpectedEvent (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 by the event handler of a node if it receives an event it cannot handle.

This case should be prevented by connect_sender().

Constructor & Destructor Documentation

◆ UnexpectedEvent() [1/2]

nest::UnexpectedEvent::UnexpectedEvent ( )
inline

References msg_.

◆ UnexpectedEvent() [2/2]

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

References msg_.

Member Function Documentation

◆ exception_name()

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

Reimplemented from nest::KernelException.

◆ what()

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

References msg_.

Member Data Documentation

◆ msg_

std::string nest::UnexpectedEvent::msg_
private

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