|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.osgi.service.resolver.ResolutionException
public class ResolutionException
Indicates failure to resolve a set of requirements.
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 Summary | |
---|---|
ResolutionException(java.lang.String message)
Create a ResolutionException with the specified message. |
|
ResolutionException(java.lang.String message,
java.lang.Throwable cause,
java.util.Collection<Requirement> unresolvedRequirements)
Create a ResolutionException with the specified message, cause
and unresolved requirements. |
|
ResolutionException(java.lang.Throwable cause)
Create a ResolutionException with the specified cause. |
Method Summary | |
---|---|
java.util.Collection<Requirement> |
getUnresolvedRequirements()
Return the unresolved requirements, if any, for this exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResolutionException(java.lang.String message, java.lang.Throwable cause, java.util.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(java.lang.String message)
ResolutionException
with the specified message.
message
- The message.public ResolutionException(java.lang.Throwable cause)
ResolutionException
with the specified cause.
cause
- The cause of this exception.Method Detail |
---|
public java.util.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.
|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |