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

#include <exception.h>

Inheritance diagram for ParseException:
Inheritance graph
Collaboration diagram for ParseException:
Collaboration graph

Public Member Functions

virtual int getLineNumber () const
 
virtual const char * what () const throw ()
 

Protected Member Functions

 ParseException (const char *m)
 

Protected Attributes

const char * msg
 
int lineNumber
 

Detailed Description

Definition at line 8 of file exception.h.

Constructor & Destructor Documentation

◆ ParseException()

ParseException::ParseException ( const char *  m)
inlineprotected

Definition at line 14 of file exception.h.

14 : msg(m), lineNumber(yylineno) { }
int yylineno
const char * msg
Definition: exception.h:15

Member Function Documentation

◆ getLineNumber()

int ParseException::getLineNumber ( ) const
virtual

Definition at line 7 of file exception.cpp.

7  {
8  return lineNumber;
9 }

◆ what()

const char * ParseException::what ( ) const
throw (
)
virtual

Definition at line 3 of file exception.cpp.

3  {
4  return msg;
5 }
const char * msg
Definition: exception.h:15

Member Data Documentation

◆ lineNumber

int ParseException::lineNumber
protected

Definition at line 16 of file exception.h.

◆ msg

const char* ParseException::msg
protected

Definition at line 15 of file exception.h.


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