org.codehaus.plexus.interpolation
Class InterpolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.codehaus.plexus.interpolation.InterpolationException
- All Implemented Interfaces:
- java.io.Serializable
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 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()
.
- Version:
- $Id: InterpolationException.java 7529 2008-07-20 20:24:21Z olamy $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
getExpression
public java.lang.String getExpression()
- Returns:
- The expression that triggered this exception.
Copyright © 2001-2010 Codehaus. All Rights Reserved.