Enum Class DiffError
- All Implemented Interfaces:
Serializable
,Comparable<DiffError>
,Constable
Describes an error that occurred when processing a text-based diff.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA commit has no parents and thus no real diff.An error which occurred when obtaining the full diff from a local diff.An #else expression is followed by another #else expression which has no semantics.An #else or #elif expression has no corresponding #if (or #ifdef, ...) expression.A file or patch contained an expression that closes an annotation block (typically an #endif) but there is no block to close.The patch of a file was requested, but the file was not found in a git diff.A condition annotation is missing an expression.Empty line in a diff.A line continuation without a following line.Unknown macro name which was identified as a conditional macro.Some internal error occurred when operating JGit.A multiline macro was defined within a multiline macro.A preprocessor block was opened but not closed.A line with an unparseable formula. -
Field Summary
-
Constructor Summary
-
Method Summary
-
Enum Constant Details
-
COMMIT_HAS_NO_PARENTS
A commit has no parents and thus no real diff. -
JGIT_ERROR
Some internal error occurred when operating JGit. The error is not further specified or unknown. -
FILE_NOT_FOUND
The patch of a file was requested, but the file was not found in a git diff. -
COULD_NOT_OBTAIN_FULLDIFF
An error which occurred when obtaining the full diff from a local diff. -
NOT_ALL_ANNOTATIONS_CLOSED
A preprocessor block was opened but not closed. Typically, this occurs when an #endif is missing. -
ENDIF_WITHOUT_IF
A file or patch contained an expression that closes an annotation block (typically an #endif) but there is no block to close. -
MLMACRO_WITHIN_MLMACRO
A multiline macro was defined within a multiline macro. -
ELSE_OR_ELIF_WITHOUT_IF
An #else or #elif expression has no corresponding #if (or #ifdef, ...) expression. -
ELSE_AFTER_ELSE
An #else expression is followed by another #else expression which has no semantics. -
IF_WITHOUT_CONDITION
A condition annotation is missing an expression. This typically occurs when an #if macro has no arguments. -
INVALID_MACRO_NAME
Unknown macro name which was identified as a conditional macro. Example:#iflol
-
INVALID_DIFF
Empty line in a diff. All lines in a diff need at least one symbol (theDiffType
) in it. -
INVALID_LINE_CONTINUATION
A line continuation without a following line. -
UNPARSEABLE_FORMULA
A line with an unparseable formula.
-
-
Field Details
-
message
-
-
Constructor Details
-
DiffError
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMessage
-
fromMessage
-
toString
-