mirror of https://github.com/apache/maven.git
Forgot to add the new exception type.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320856 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
62149297e4
commit
937d0d933f
|
@ -0,0 +1,41 @@
|
|||
package org.apache.maven.artifact.manager;
|
||||
|
||||
import org.apache.maven.wagon.TransferFailedException;
|
||||
|
||||
|
||||
public class WagonConfigurationException
|
||||
extends TransferFailedException
|
||||
{
|
||||
|
||||
static final long serialVersionUID = 1;
|
||||
|
||||
private final String originalMessage;
|
||||
private final String repositoryId;
|
||||
|
||||
public WagonConfigurationException( String repositoryId, String message, Throwable cause )
|
||||
{
|
||||
super( "While configuring wagon for \'" + repositoryId + "\': " + message, cause );
|
||||
|
||||
this.repositoryId = repositoryId;
|
||||
this.originalMessage = message;
|
||||
}
|
||||
|
||||
public WagonConfigurationException( String repositoryId, String message )
|
||||
{
|
||||
super( "While configuring wagon for \'" + repositoryId + "\': " + message );
|
||||
|
||||
this.repositoryId = repositoryId;
|
||||
this.originalMessage = message;
|
||||
}
|
||||
|
||||
public final String getRepositoryId()
|
||||
{
|
||||
return repositoryId;
|
||||
}
|
||||
|
||||
public final String getOriginalMessage()
|
||||
{
|
||||
return originalMessage;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue