Class IllFormedAnnotationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.variantsync.diffdetective.variation.diff.parse.IllFormedAnnotationException
All Implemented Interfaces:
Serializable

public class IllFormedAnnotationException extends Exception
Exception that is thrown when a syntactically incorrect feature annotation is found.
Author:
Paul Bittner
See Also:
  • Field Details

    • errorType

      private final DiffError errorType
  • Constructor Details

    • IllFormedAnnotationException

      private IllFormedAnnotationException(DiffError errorType, String msg)
      Create an exception for reporting the given error.
      Parameters:
      errorType - The error to report.
      msg - The message for this exception.
      See Also:
  • Method Details

    • IfWithoutCondition

      public static IllFormedAnnotationException IfWithoutCondition(String message)
      Creates an IllFormedAnnotationException with the given message and the error DiffError.IF_WITHOUT_CONDITION.
      Parameters:
      message - The message of the resulting exception.
      Returns:
      An exception reporting that an if annotation without a condition was found.
    • getType

      public DiffError getType()
      Returns the error that is reported by this exception.