java.module
Class UnsatisfiedDependencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.module.ModuleInitializationException
              extended by java.module.UnsatisfiedDependencyException
All Implemented Interfaces:
Serializable

public class UnsatisfiedDependencyException
extends ModuleInitializationException

Thrown to indicate that there is an unsatisifed import dependency in a module during resolution.

Since:
1.7.0
Author:
Stanley M. Ho
See Also:
ImportDependency, ModuleDefinition, Serialized Form

Constructor Summary
UnsatisfiedDependencyException(String s, ModuleDefinition moduleDef, ImportDependency importDep, VersionConstraint versionConstraint)
          Constructs a UnsatisfiedDependencyException with the detail message, the specified module definition, the import dependency, and the override version constraint.
UnsatisfiedDependencyException(String s, Throwable cause, ModuleDefinition moduleDef, ImportDependency importDep, VersionConstraint versionConstraint)
          Constructs a UnsatisfiedDependencyException with the detail message, the cause, the specified module definition, and the import dependency, and the override version constraint.
 
Method Summary
 ImportDependency getImportDependency()
          Returns the import dependency of the module definition that is unsatisfied.
 ModuleDefinition getModuleDefinition()
          Returns the module definition that has the unsatisfied dependency.
 VersionConstraint getOverrideVersionConstraint()
          Returns the override version constraint.
 
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

UnsatisfiedDependencyException

public UnsatisfiedDependencyException(String s,
                                      ModuleDefinition moduleDef,
                                      ImportDependency importDep,
                                      VersionConstraint versionConstraint)
Constructs a UnsatisfiedDependencyException with the detail message, the specified module definition, the import dependency, and the override version constraint.

Parameters:
s - the detail message.
moduleDef - the module definition.
importDep - the unsatisifed import dependency.
versionConstraint - the override version constraint.

UnsatisfiedDependencyException

public UnsatisfiedDependencyException(String s,
                                      Throwable cause,
                                      ModuleDefinition moduleDef,
                                      ImportDependency importDep,
                                      VersionConstraint versionConstraint)
Constructs a UnsatisfiedDependencyException with the detail message, the cause, the specified module definition, and the import dependency, and the override version constraint.

Parameters:
s - the detail message.
cause - the cause.
moduleDef - the module definition.
importDep - the unsatisifed import dependency.
versionConstraint - the override version constraint.
Method Detail

getModuleDefinition

public ModuleDefinition getModuleDefinition()
Returns the module definition that has the unsatisfied dependency.


getImportDependency

public ImportDependency getImportDependency()
Returns the import dependency of the module definition that is unsatisfied.


getOverrideVersionConstraint

public VersionConstraint getOverrideVersionConstraint()
Returns the override version constraint.