Class IllFormedAnnotationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.variantsync.diffdetective.variation.diff.parse.IllFormedAnnotationException
- All Implemented Interfaces:
Serializable
Exception that is thrown when a syntactically incorrect feature annotation is found.
- Author:
- Paul Bittner
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
IllFormedAnnotationException
(DiffError errorType, String msg) Create an exception for reporting the given error. -
Method Summary
Modifier and TypeMethodDescriptiongetType()
Returns the error that is reported by this exception.static IllFormedAnnotationException
IfWithoutCondition
(String message) Creates an IllFormedAnnotationException with the given message and the errorDiffError.IF_WITHOUT_CONDITION
.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorType
-
-
Constructor Details
-
IllFormedAnnotationException
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
Creates an IllFormedAnnotationException with the given message and the errorDiffError.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
Returns the error that is reported by this exception.
-