1 package org.apache.maven.project.interpolation;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 @SuppressWarnings( "serial" )
28 @Deprecated
29 public class ModelInterpolationException
30 extends Exception
31 {
32 private String expression;
33
34 private String originalMessage;
35
36 public ModelInterpolationException( String message )
37 {
38 super( message );
39 }
40
41 public ModelInterpolationException( String message, Throwable cause )
42 {
43 super( message, cause );
44 }
45
46 public ModelInterpolationException( String expression, String message, Throwable cause )
47 {
48 super( "The POM expression: " + expression + " could not be evaluated. Reason: " + message, cause );
49
50 this.expression = expression;
51 this.originalMessage = message;
52 }
53
54 public ModelInterpolationException( String expression, String message )
55 {
56 super( "The POM expression: " + expression + " could not be evaluated. Reason: " + message );
57
58 this.expression = expression;
59 this.originalMessage = message;
60 }
61
62 public String getExpression()
63 {
64 return expression;
65 }
66
67 public String getOriginalMessage()
68 {
69 return originalMessage;
70 }
71
72 }