-
-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5906 from chrisrueger/resolve-add-visual-clues-fo…
…r-runblacklist Show blacklisted req/caps on resolve failure
- Loading branch information
Showing
3 changed files
with
140 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
biz.aQute.resolve/src/biz/aQute/resolve/BndResolutionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package biz.aQute.resolve; | ||
|
||
import java.util.Collection; | ||
import java.util.Set; | ||
|
||
import org.osgi.resource.Capability; | ||
import org.osgi.resource.Requirement; | ||
import org.osgi.resource.Resource; | ||
import org.osgi.service.resolver.ResolutionException; | ||
|
||
/** | ||
* A {@link ResolutionException} providing more details about why resolution has | ||
* failed. | ||
*/ | ||
public class BndResolutionException extends ResolutionException { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private Set<Resource> blackList; | ||
private Set<Capability> blacklistedCapabilities; | ||
|
||
public BndResolutionException(String message, Throwable cause, | ||
Collection<Requirement> unresolvedRequirements, Set<Resource> blackList, | ||
Set<Capability> blacklistedCapabilities) { | ||
super(message, cause, unresolvedRequirements); | ||
this.blackList = blackList; | ||
this.blacklistedCapabilities = blacklistedCapabilities; | ||
|
||
} | ||
|
||
public Set<Resource> getBlackList() { | ||
return blackList; | ||
} | ||
|
||
public Set<Capability> getBlacklistedCapabilities() { | ||
return blacklistedCapabilities; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters