1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.artifact;
20
21 import java.net.MalformedURLException;
22 import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
23
24
25
26
27
28
29 public class InvalidRepositoryException extends Exception {
30 private final String repositoryId;
31
32 public InvalidRepositoryException(String message, String repositoryId, MalformedURLException cause) {
33 super(message, cause);
34 this.repositoryId = repositoryId;
35 }
36
37 protected InvalidRepositoryException(String message, String repositoryId, ComponentLookupException cause) {
38 super(message, cause);
39 this.repositoryId = repositoryId;
40 }
41
42 @Deprecated
43 public InvalidRepositoryException(String message, Throwable t) {
44 super(message, t);
45 this.repositoryId = null;
46 }
47
48 public InvalidRepositoryException(String message, String repositoryId) {
49 super(message);
50 this.repositoryId = repositoryId;
51 }
52
53 public String getRepositoryId() {
54 return repositoryId;
55 }
56 }