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

public Class CompoundException

extends Exception
Class Inheritance
Imports
java.util.ArrayList, .Collection, .Collections, .List, org.eclipse.jgit.internal.JGitText

An exception detailing multiple reasons for failure.

Field Summary

Modifier and TypeField and Description
private final List<Throwable>
private static final long

Constructor Summary

AccessConstructor and Description
public
CompoundException(Collection<Throwable>
Two or more exceptions that may have been the problem.
why
)

Constructs an exception detailing many potential reasons for failure.

Method Summary

Modifier and TypeMethod and Description
private static String
public List<Throwable>

Returns:

unmodifiable collection of all possible reasons.
getAllCauses
()

Get the complete list of reasons why this failure happened.

Field Detail

causeListback to summary
private final List<Throwable> causeList
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

CompoundExceptionback to summary
public CompoundException(Collection<Throwable> why)

Constructs an exception detailing many potential reasons for failure.

Parameters
why:Collection<Throwable>

Two or more exceptions that may have been the problem.

Method Detail

formatback to summary
private static String format(Collection<Throwable> causes)
getAllCausesback to summary
public List<Throwable> getAllCauses()

Get the complete list of reasons why this failure happened.

Returns:List<Throwable>

unmodifiable collection of all possible reasons.