Package cs2110

Class IncompleteRpnException

All Implemented Interfaces:
Serializable

public class IncompleteRpnException extends Exception
Indicates that an expression string could not be parsed as RPN to yield an expression.
See Also:
  • Constructor Details Link icon

    • IncompleteRpnException Link icon

      public IncompleteRpnException(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 Details Link icon

    • expression Link icon

      public String expression()
      The expression string that parsing was attempted on.
    • stackDepth Link icon

      public int stackDepth()
      The size of the expression stack at the conclusion of parsing.