org.apache.felix.framework.searchpolicy
Class ResolveException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.felix.framework.searchpolicy.ResolveException
All Implemented Interfaces:
java.io.Serializable

public class ResolveException
extends java.lang.Exception

This exception is thrown if a module cannot be resolved. The module that failed to be resolved is recorded, along with the failed import target identifier and version number. If the error was a result of a propagation conflict, then the propagation error flag is set.

See Also:
org.apache.felix.moduleloader.search.ImportSearchPolicy#validate(org.apache.felix.moduleloader.Module), Serialized Form

Constructor Summary
ResolveException(java.lang.String msg, IModule module, IRequirement req)
          Constructs an exception with the specified message, module, import identifier, import version number, and propagation flag.
 
Method Summary
 IModule getModule()
          Returns the module that was being resolved.
 IRequirement getRequirement()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResolveException

public ResolveException(java.lang.String msg,
                        IModule module,
                        IRequirement req)
Constructs an exception with the specified message, module, import identifier, import version number, and propagation flag.

Method Detail

getModule

public IModule getModule()
Returns the module that was being resolved.

Returns:
the module that was being resolved.

getRequirement

public IRequirement getRequirement()


Copyright © 2010. All Rights Reserved.