Class InterpolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.codehaus.plexus.interpolation.InterpolationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InterpolationCycleException
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 an
ObjectBasedValueSource
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 the ValueSource
,
which is propagated out through Interpolator.getFeedback()
.- See Also:
-
Constructor Summary
ConstructorDescriptionInterpolationException
(String message, String expression) InterpolationException
(String message, String expression, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InterpolationException
- Parameters:
message
- The general description of the problemexpression
- The expression that triggered the problemcause
- The wrapped exception
-
InterpolationException
- Parameters:
message
- The general description of the problemexpression
- The expression that triggered the problem
-
-
Method Details
-
getExpression
- Returns:
- The expression that triggered this exception.
-