public class ResolutionException extends RuntimeException
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 subclass this class to provide extra state information about the reason for the resolution failure.
Constructor and Description |
---|
ResolutionException(String message)
Creates an exception of type
ResolutionException . |
ResolutionException(String message,
Throwable cause,
Collection<Requirement> unresolvedRequirements)
Creates an exception of type
ResolutionException . |
ResolutionException(Throwable cause)
Creates an exception of type
ResolutionException . |
Modifier and Type | Method and Description |
---|---|
Collection<Requirement> |
getUnresolvedRequirements()
May contain one or more unresolved mandatory requirements from mandatory
resources.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResolutionException(String message, Throwable cause, Collection<Requirement> unresolvedRequirements)
ResolutionException
.
This method creates an ResolutionException
object with the
specified message, cause and unresolvedRequirements.
message
- The message.cause
- The cause of this exception.unresolvedRequirements
- the requirements that are unresolved or null if no unresolved requirements
information is provided.public ResolutionException(String message)
ResolutionException
.
This method creates an ResolutionException
object with the
specified message.
message
- The message.public ResolutionException(Throwable cause)
ResolutionException
.
This method creates an ResolutionException
object with the
specified cause.
cause
- The cause of this exception.public Collection<Requirement> getUnresolvedRequirements()
This exception is provided for informational purposes and the specific set of requirements that are returned after a resolve failure is not defined.
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.