Package org.jparsec

Class EmptyParseError

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String encountered  
      private int index  
    • Constructor Summary

      Constructors 
      Constructor Description
      EmptyParseError​(int index, java.lang.String encountered)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEncountered()
      Returns the physical input encountered when the error happened.
      java.util.List<java.lang.String> getExpected()
      Returns all that are logically expected.
      java.lang.String getFailureMessage()
      Returns the error message incurred by Parsers.fail(String), or null if none.
      int getIndex()
      Returns the 0-based index in the source where the error happened.
      java.lang.String getUnexpected()
      Returns what is logically unexpected, or null if none.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • index

        private final int index
      • encountered

        private final java.lang.String encountered
    • Constructor Detail

      • EmptyParseError

        EmptyParseError​(int index,
                        java.lang.String encountered)