package org.jboss.wolf.validator.impl.bom;

import org.eclipse.aether.resolution.DependencyResolutionException;

public class BomDependencyNotFoundException extends Exception {

    private static final long serialVersionUID = 1L;

    private final DependencyResolutionException dependencyResolutionException;

    public BomDependencyNotFoundException(DependencyResolutionException dependencyResolutionException) {
        super(dependencyResolutionException);
        this.dependencyResolutionException = dependencyResolutionException;
    }

    public DependencyResolutionException getDependencyResolutionException() {
        return dependencyResolutionException;
    }

}
@@ -37,16 +37,109 @@
 l.bom;%0A%0A
+import org.eclipse.aether.artifact.Artifact;%0Aimport org.eclipse.aether.graph.DependencyNode;%0A
 import o
@@ -398,16 +398,111 @@
 ption;%0A%0A
+    private final Artifact missingArtifact;%0A%0A    private final DependencyNode dependencyNode;%0A%0A
     publ
@@ -594,16 +594,42 @@
 xception
+, Artifact missingArtifact
 ) %7B%0A    
@@ -754,133 +754,432 @@
     
-%7D%0A%0A    public DependencyResolutionException getDependencyResolutionException() %7B%0A        return dependencyResolutionException
+    this.missingArtifact = missingArtifact;%0A        this.dependencyNode = dependencyResolutionException.getResult().getRoot();%0A    %7D%0A%0A    public DependencyResolutionException getDependencyResolutionException() %7B%0A        return dependencyResolutionException;%0A    %7D%0A%0A    public Artifact getMissingArtifact() %7B%0A        return missingArtifact;%0A    %7D%0A%0A    public DependencyNode getDependencyNode() %7B%0A        return dependencyNode
 ;%0A  

Store additional metadata in BomDependencyNotFoundException