Top Description Inners Fields Constructors Methods
org.eclipse.jgit.errors

public Class NoMergeBaseException

extends IOException
Class Inheritance
Imports
java.io.IOException, java.text.MessageFormat, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.merge.RecursiveMerger

Exception thrown if a merge fails because no merge base could be determined.
Since
3.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
NoMergeBaseException.MergeBaseFailureReason

An enum listing the different reason why no merge base could be determined.

Field Summary

Modifier and TypeField and Description
private NoMergeBaseException.MergeBaseFailureReason
private static final long

Constructor Summary

AccessConstructor and Description
public
NoMergeBaseException(NoMergeBaseException.MergeBaseFailureReason
the reason why no merge base could be found
reason
,
String
a text describing the problem
message
)

Construct a NoMergeBase exception

public
NoMergeBaseException(NoMergeBaseException.MergeBaseFailureReason
the reason why no merge base could be found
reason
,
String
a text describing the problem
message
,
Throwable
an exception causing this error
why
)

Construct a NoMergeBase exception

Method Summary

Modifier and TypeMethod and Description
public NoMergeBaseException.MergeBaseFailureReason

Returns:

the reason why no merge base could be found
getReason
()

Get the reason why no merge base could be found

Field Detail

reasonback to summary
private NoMergeBaseException.MergeBaseFailureReason reason
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Constructor Detail

NoMergeBaseExceptionback to summary
public NoMergeBaseException(NoMergeBaseException.MergeBaseFailureReason reason, String message)

Construct a NoMergeBase exception

Parameters
reason:NoMergeBaseException.MergeBaseFailureReason

the reason why no merge base could be found

message:String

a text describing the problem

NoMergeBaseExceptionback to summary
public NoMergeBaseException(NoMergeBaseException.MergeBaseFailureReason reason, String message, Throwable why)

Construct a NoMergeBase exception

Parameters
reason:NoMergeBaseException.MergeBaseFailureReason

the reason why no merge base could be found

message:String

a text describing the problem

why:Throwable

an exception causing this error

Method Detail

getReasonback to summary
public NoMergeBaseException.MergeBaseFailureReason getReason()

Get the reason why no merge base could be found

Returns:NoMergeBaseException.MergeBaseFailureReason

the reason why no merge base could be found

org.eclipse.jgit.errors back to summary

public final Enum NoMergeBaseException.MergeBaseFailureReason

extends Enum<NoMergeBaseException.MergeBaseFailureReason>
Class Inheritance

An enum listing the different reason why no merge base could be determined.

Field Summary

Modifier and TypeField and Description
public static final NoMergeBaseException.MergeBaseFailureReason
CONFLICTS_DURING_MERGE_BASE_CALCULATION

In order to find a single merge base it may required to merge together multiple common predecessors.

public static final NoMergeBaseException.MergeBaseFailureReason
MULTIPLE_MERGE_BASES_NOT_SUPPORTED

Multiple merge bases have been found (e.g. the commits to be merged have multiple common predecessors) but the merge strategy doesn't support this (e.g. ResolveMerge)

public static final NoMergeBaseException.MergeBaseFailureReason
TOO_MANY_MERGE_BASES

The number of merge bases exceeds RecursiveMerger#MAX_BASES

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static NoMergeBaseException.MergeBaseFailureReason
public static NoMergeBaseException.MergeBaseFailureReason[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CONFLICTS_DURING_MERGE_BASE_CALCULATIONback to summary
public static final NoMergeBaseException.MergeBaseFailureReason CONFLICTS_DURING_MERGE_BASE_CALCULATION

In order to find a single merge base it may required to merge together multiple common predecessors. If during these merges conflicts occur the merge fails with this reason

MULTIPLE_MERGE_BASES_NOT_SUPPORTEDback to summary
public static final NoMergeBaseException.MergeBaseFailureReason MULTIPLE_MERGE_BASES_NOT_SUPPORTED

Multiple merge bases have been found (e.g. the commits to be merged have multiple common predecessors) but the merge strategy doesn't support this (e.g. ResolveMerge)

TOO_MANY_MERGE_BASESback to summary
public static final NoMergeBaseException.MergeBaseFailureReason TOO_MANY_MERGE_BASES

The number of merge bases exceeds RecursiveMerger#MAX_BASES

Constructor Detail

MergeBaseFailureReasonback to summary
private MergeBaseFailureReason()

Method Detail

valueOfback to summary
public static NoMergeBaseException.MergeBaseFailureReason valueOf(String name)
valuesback to summary
public static NoMergeBaseException.MergeBaseFailureReason[] values()