Class InterpolationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.codehaus.plexus.interpolation.InterpolationException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
InterpolationCycleException
public class InterpolationException extends java.lang.Exception
Signals an unrecoverable error in the process of interpolating a string, such as the detection of an expression cycle. Errors resolving individual values from expressions, such as those that happen when an object wrapped in anObjectBasedValueSource
doesn't have the property represented by a particular expression part, should NOT result in InterpolationExceptions being thrown. Instead, they should be reported in the feedback from theValueSource
, which is propagated out throughInterpolator.getFeedback()
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InterpolationException(java.lang.String message, java.lang.String expression)
InterpolationException(java.lang.String message, java.lang.String expression, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExpression()
-
-
-
Constructor Detail
-
InterpolationException
public InterpolationException(java.lang.String message, java.lang.String expression, java.lang.Throwable cause)
- Parameters:
message
- The general description of the problemexpression
- The expression that triggered the problemcause
- The wrapped exception
-
InterpolationException
public InterpolationException(java.lang.String message, java.lang.String expression)
- Parameters:
message
- The general description of the problemexpression
- The expression that triggered the problem
-
-