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

Exception to be thrown if an entry referenced inside a dictionary has the wrong type. More...

#include <sliexceptions.h>

Inheritance diagram for EntryTypeMismatch:
DictError InterpreterError SLIException

Public Member Functions

 ~EntryTypeMismatch () throw ()
 
 EntryTypeMismatch (const std::string &expectedType, const std::string &providedType)
 
std::string message ()
 Returns a diagnostic message or empty string. More...
 
- Public Member Functions inherited from DictError
virtual ~DictError () throw ()
 
 DictError (char const *const)
 
- 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 an entry referenced inside a dictionary has the wrong type.

Constructor & Destructor Documentation

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

Member Function Documentation

std::string EntryTypeMismatch::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_.

Member Data Documentation

std::string EntryTypeMismatch::expected_
private

Referenced by message().

std::string EntryTypeMismatch::provided_
private

Referenced by message().


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