Package cs2110
Class IncompleteRpnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cs2110.IncompleteRpnException
- All Implemented Interfaces:
- Serializable
Indicates that an expression string could not be parsed as RPN to yield an expression.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionIncompleteRpnException(String expression, int stackDepth) Create an IncompleteRpnException indicating that `expression` could not be parsed as RPN and that the expression stack had a size of `stackDepth` at the conclusion of parsing.
- 
Method SummaryModifier and TypeMethodDescriptionThe expression string that parsing was attempted on.intThe size of the expression stack at the conclusion of parsing.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
IncompleteRpnExceptionCreate an IncompleteRpnException indicating that `expression` could not be parsed as RPN and that the expression stack had a size of `stackDepth` at the conclusion of parsing.
 
- 
- 
Method Details- 
expressionThe expression string that parsing was attempted on.
- 
stackDepthpublic int stackDepth()The size of the expression stack at the conclusion of parsing.
 
-