Class DiffParseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.variantsync.diffdetective.diff.result.DiffParseException
All Implemented Interfaces:
Serializable

public final class DiffParseException extends Exception
Describes an error that occurred when processing a text-based diff.
Author:
Benjamin Moosherr
See Also:
  • Field Details

  • Constructor Details

    • DiffParseException

      public DiffParseException(DiffError error, DiffLineNumber lineNumber)
      Parameters:
      error - the error type to be reported
      lineNumber - the source line of the error
    • DiffParseException

      private DiffParseException(Exception exception, DiffError error, DiffLineNumber lineNumber)
      Parameters:
      exception - an exception that indicated the error
      error - the error type to be reported
      lineNumber - the source line of the error
  • Method Details

    • Unparseable

      public static DiffParseException Unparseable(Exception exception, DiffLineNumber lineNumber)
      A DiffParseException due to an unparseable formula.
      Parameters:
      exception - The parse exception that occurred
      lineNumber - The line number of the unparseable formula
    • getError

      public DiffError getError()
    • getLineNumber

      public DiffLineNumber getLineNumber()
    • toString

      public String toString()
      Overrides:
      toString in class Throwable