NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Private Attributes | List of all members
TypeMismatch Class Reference

Exception to be thrown if a given SLI type does not match the expected type. More...

#include <sliexceptions.h>

Inheritance diagram for TypeMismatch:
InterpreterError SLIException

Public Member Functions

 ~TypeMismatch () throw ()
 
 TypeMismatch ()
 
 TypeMismatch (const std::string &expectedType)
 
 TypeMismatch (const std::string &expectedType, const std::string &providedType)
 
std::string message ()
 Returns a diagnostic message or empty string. More...
 
- Public Member Functions inherited from InterpreterError
virtual ~InterpreterError () throw ()
 
 InterpreterError (char const *const what)
 
- 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

std::string expected_
 
std::string provided_
 

Detailed Description

Exception to be thrown if a given SLI type does not match the expected type.

Constructor & Destructor Documentation

TypeMismatch::~TypeMismatch ( )
throw (
)
inline
TypeMismatch::TypeMismatch ( )
inline
TypeMismatch::TypeMismatch ( const std::string &  expectedType)
inline
TypeMismatch::TypeMismatch ( const std::string &  expectedType,
const std::string &  providedType 
)
inline

Member Function Documentation

std::string TypeMismatch::message ( )
virtual

Returns a diagnostic message or empty string.

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

Implements SLIException.

References expected_, and provided_.

Referenced by nest::Network::convergent_connect(), and nest::Network::divergent_connect().

Member Data Documentation

std::string TypeMismatch::expected_
private

Referenced by message().

std::string TypeMismatch::provided_
private

Referenced by message().


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