If a resolution failure is caused by a missing mandatory dependency a
resolver may include any requirements it has considered in the resolution
exception. Clients may access this set of dependencies via the
getUnresolvedRequirements() method.
Resolver implementations may extend this class to provide extra state information about the reason for the resolution failure.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final transient Collection |
| Access | Constructor and Description |
|---|---|
| public | ResolutionException(String
The message. message, Throwable The cause of this exception. cause, Collection<Requirement> The unresolved mandatory requirements from
mandatory resources or unresolvedRequirements)null if no unresolved requirements
information is provided.Create a |
| public | ResolutionException(String
The message. message)Create a |
| public | ResolutionException(Throwable
The cause of this exception. cause)Create a |
| Modifier and Type | Method and Description |
|---|---|
| private static Collection | |
| public Collection | Returns: A collection of the unresolved requirements for this exception. The returned collection may be empty if no unresolved requirements information is available.Return the unresolved requirements, if any, for this exception. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| unresolvedRequirements | back to summary |
|---|---|
| private final transient Collection<Requirement> unresolvedRequirements | |
| ResolutionException | back to summary |
|---|---|
| public ResolutionException(String message, Throwable cause, Collection<Requirement> unresolvedRequirements) Create a
| |
| ResolutionException | back to summary |
|---|---|
| public ResolutionException(String message) Create a
| |
| ResolutionException | back to summary |
|---|---|
| public ResolutionException(Throwable cause) Create a
| |
| emptyCollection | back to summary |
|---|---|
private static Collection
| |
| getUnresolvedRequirements | back to summary |
|---|---|
| public Collection Return the unresolved requirements, if any, for this exception. The unresolved requirements are provided for informational purposes and the specific set of unresolved requirements that are provided after a resolve failure is not defined.
| |