-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce two exceptions to distinquish between resolution failures
- Loading branch information
Showing
7 changed files
with
74 additions
and
28 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
core/src/main/java/org/wildfly/channel/ArtifactTransferException.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,20 @@ | ||
package org.wildfly.channel; | ||
|
||
import java.util.Set; | ||
|
||
/** | ||
* Thrown in case of an error during downloading of one or more of required artifacts. | ||
*/ | ||
public class ArtifactTransferException extends UnresolvedMavenArtifactException { | ||
|
||
public ArtifactTransferException(String localizedMessage, | ||
Throwable cause, | ||
Set<ArtifactCoordinate> unresolvedArtifacts, | ||
Set<Repository> attemptedRepositories) { | ||
super(localizedMessage, cause, unresolvedArtifacts, attemptedRepositories); | ||
} | ||
|
||
public ArtifactTransferException(String message, Set<ArtifactCoordinate> unresolvedArtifacts, Set<Repository> attemptedRepositories) { | ||
super(message, unresolvedArtifacts, attemptedRepositories); | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
core/src/main/java/org/wildfly/channel/NoStreamFoundException.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,20 @@ | ||
package org.wildfly.channel; | ||
|
||
import java.util.Set; | ||
|
||
/** | ||
* Thrown if one or more of required artifacts are not found in specified Channels | ||
*/ | ||
public class NoStreamFoundException extends UnresolvedMavenArtifactException { | ||
|
||
public NoStreamFoundException(String localizedMessage, | ||
Throwable cause, | ||
Set<ArtifactCoordinate> unresolvedArtifacts, | ||
Set<Repository> attemptedRepositories) { | ||
super(localizedMessage, cause, unresolvedArtifacts, attemptedRepositories); | ||
} | ||
|
||
public NoStreamFoundException(String message, Set<ArtifactCoordinate> unresolvedArtifacts, Set<Repository> attemptedRepositories) { | ||
super(message, unresolvedArtifacts, attemptedRepositories); | ||
} | ||
} |
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
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
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
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