public class ResolutionException extends Exception
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.
Constructor and Description |
---|
ResolutionException(String message)
Create a
ResolutionException with the specified message. |
ResolutionException(String message,
Throwable cause,
Collection<Requirement> unresolvedRequirements)
Create a
ResolutionException with the specified message, cause
and unresolved requirements. |
ResolutionException(Throwable cause)
Create a
ResolutionException with the specified cause. |
Modifier and Type | Method and Description |
---|---|
Collection<Requirement> |
getUnresolvedRequirements()
Return the unresolved requirements, if any, for this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResolutionException(String message, Throwable cause, Collection<Requirement> unresolvedRequirements)
ResolutionException
with the specified message, cause
and unresolved requirements.message
- The message.cause
- The cause of this exception.unresolvedRequirements
- The unresolved mandatory requirements from
mandatory resources or null
if no unresolved requirements
information is provided.public ResolutionException(String message)
ResolutionException
with the specified message.message
- The message.public ResolutionException(Throwable cause)
ResolutionException
with the specified cause.cause
- The cause of this exception.public Collection<Requirement> getUnresolvedRequirements()
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.
Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0