Piethon  1.0
A Python-like interpreter using flex and bison.
Public Member Functions | List of all members
ReturnValue Class Reference

#include <exception.h>

Collaboration diagram for ReturnValue:
Collaboration graph

Public Member Functions

 ReturnValue (const Number &num, int line)
 
const char * what () const throw ()
 
Number getValue () const
 
int getLineNumber () const
 

Detailed Description

Definition at line 68 of file exception.h.

Constructor & Destructor Documentation

◆ ReturnValue()

ReturnValue::ReturnValue ( const Number num,
int  line 
)
inline

Definition at line 70 of file exception.h.

70 : value(num), lineNumber(line) { }

Member Function Documentation

◆ getLineNumber()

int ReturnValue::getLineNumber ( ) const

Definition at line 19 of file exception.cpp.

19  {
20  return lineNumber;
21 }

◆ getValue()

Number ReturnValue::getValue ( ) const

Definition at line 15 of file exception.cpp.

15  {
16  return value;
17 }

◆ what()

const char * ReturnValue::what ( ) const
throw (
)

Definition at line 11 of file exception.cpp.

11  {
12  return "a function returned a value (no error occurred)";
13 }

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