1 package org.apache.maven.plugin;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.plugin.descriptor.PluginDescriptor;
23 import org.codehaus.plexus.component.configurator.ComponentConfigurationException;
24 import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException;
25 import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
26
27
28
29
30 public class PluginConfigurationException
31 extends Exception
32 {
33 private PluginDescriptor pluginDescriptor;
34
35 private String originalMessage;
36
37 public PluginConfigurationException( PluginDescriptor pluginDescriptor, String originalMessage )
38 {
39 super( originalMessage );
40 this.pluginDescriptor = pluginDescriptor;
41 this.originalMessage = originalMessage;
42 }
43
44 public PluginConfigurationException( PluginDescriptor pluginDescriptor, String originalMessage, Throwable cause )
45 {
46 super( originalMessage, cause );
47 this.pluginDescriptor = pluginDescriptor;
48 this.originalMessage = originalMessage;
49 }
50
51 public PluginConfigurationException( PluginDescriptor pluginDescriptor, String originalMessage,
52 ExpressionEvaluationException cause )
53 {
54 super( originalMessage, cause );
55 this.pluginDescriptor = pluginDescriptor;
56 this.originalMessage = originalMessage;
57 }
58
59 public PluginConfigurationException( PluginDescriptor pluginDescriptor, String originalMessage,
60 ComponentConfigurationException cause )
61 {
62 super( originalMessage, cause );
63 this.pluginDescriptor = pluginDescriptor;
64 this.originalMessage = originalMessage;
65 }
66
67 public PluginConfigurationException( PluginDescriptor pluginDescriptor, String originalMessage,
68 ComponentLookupException cause )
69 {
70 super( originalMessage, cause );
71 this.pluginDescriptor = pluginDescriptor;
72 this.originalMessage = originalMessage;
73 }
74 }