Piethon  1.0
A Python-like interpreter using flex and bison.
exception.cpp
Go to the documentation of this file.
1 #include "exception.h"
2 
3 const char* ParseException::what() const throw() {
4  return msg;
5 }
6 
8  return lineNumber;
9 }
10 
11 const char* ReturnValue::what() const throw() {
12  return "a function returned a value (no error occurred)";
13 }
14 
16  return value;
17 }
18 
20  return lineNumber;
21 }
Number getValue() const
Definition: exception.cpp:15
virtual int getLineNumber() const
Definition: exception.cpp:7
Definition: number.h:21
virtual const char * what() const
Definition: exception.cpp:3
const char * msg
Definition: exception.h:15
int getLineNumber() const
Definition: exception.cpp:19
const char * what() const
Definition: exception.cpp:11