mathparser
[ class tree: mathparser ] [ index: mathparser ] [ all elements ]

Class: Mathparser_ParserException

Source Location: /mathparser/mathparser.php

Class Overview

Exception
   |
   --Mathparser_ParserException

ParserException is thrown by some methods of MathParser implementation if an expression cannot be parsed. These methods are: parse(), evaluate(), getValue() User defined functions can choose to throw this exception too.


Variables

Methods


Inherited Variables

Class: Exception (Internal Class)

$code
$file
$line
$message
$string
$trace

Inherited Methods

Class: Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Class Details

[line 2594]
ParserException is thrown by some methods of MathParser implementation if an expression cannot be parsed. These methods are: parse(), evaluate(), getValue() User defined functions can choose to throw this exception too.



[ Top ]


Class Variables

$err =

[line 2599]

Member variable that holds the error portion of the expression.



Tags:

access:  public

Type:   mixed


[ Top ]

$exp =

[line 2604]

Member variable that holds the parsed expression itself.



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 2609]

Mathparser_ParserException __construct( $msg, $errPart, $expression)

Constructor.



Tags:

access:  public


Overrides Exception::constructor __construct ( [$message = ], [$code = ] ) (parent method not documented)

Parameters:

   $msg  
   $errPart  
   $expression  

[ Top ]

method getInvalidPortionOfExpression [line 2619]

string getInvalidPortionOfExpression( )

Returns the expression string that cannot be parsed.



Tags:

access:  public


[ Top ]

method getSubExpression [line 2634]

string getSubExpression( )

Returns the subexpression that is the immediate parent of the error portion.


For example, if the expression is 3+LN(MAX(4,)) then getInvalidPortionOfExpression() would return MAX(4,) and getSubExpression() would return LN(MAX(4,))

The returned sub expressions may not exactly match the original string supplied as the expression since space characters and paranthesis may be substituted for efficient parsing.




Tags:

access:  public


[ Top ]


Documentation generated on Mon, 06 Jun 2011 23:48:26 -0700 by phpDocumentor 1.4.1