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

Exception to be thrown if an error occured while accessing the stack. More...

#include <sliexceptions.h>

Inheritance diagram for StackUnderflow:
InterpreterError SLIException

Public Member Functions

 StackUnderflow (int n, int g)
 
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

int needed
 
int given
 

Detailed Description

Exception to be thrown if an error occured while accessing the stack.

Constructor & Destructor Documentation

StackUnderflow::StackUnderflow ( int  n,
int  g 
)
inline

Member Function Documentation

std::string StackUnderflow::message ( )
virtual

Returns a diagnostic message or empty string.

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

Implements SLIException.

References given, and needed.

Member Data Documentation

int StackUnderflow::given
private

Referenced by message().

int StackUnderflow::needed
private

Referenced by message().


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