1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.repository.legacy;
20
21 import org.apache.maven.wagon.TransferFailedException;
22
23
24
25
26 public class WagonConfigurationException extends TransferFailedException {
27
28 static final long serialVersionUID = 1;
29
30 private final String originalMessage;
31 private final String repositoryId;
32
33 public WagonConfigurationException(String repositoryId, String message, Throwable cause) {
34 super("While configuring wagon for '" + repositoryId + "': " + message, cause);
35
36 this.repositoryId = repositoryId;
37 this.originalMessage = message;
38 }
39
40 public WagonConfigurationException(String repositoryId, String message) {
41 super("While configuring wagon for '" + repositoryId + "': " + message);
42
43 this.repositoryId = repositoryId;
44 this.originalMessage = message;
45 }
46
47 public final String getRepositoryId() {
48 return repositoryId;
49 }
50
51 public final String getOriginalMessage() {
52 return originalMessage;
53 }
54 }