org.codehaus.plexus.interpolation

Class InterpolationException

public class InterpolationException extends 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 getFeedback.

Version: $Id: InterpolationException.java 8353 2009-08-21 04:14:37Z jdcasey $

Constructor Summary
InterpolationException(String message, String expression, Throwable cause)
InterpolationException(String message, String expression)
Method Summary
StringgetExpression()

Constructor Detail

InterpolationException

public InterpolationException(String message, String expression, Throwable cause)

Parameters: message The general description of the problem expression The expression that triggered the problem cause The wrapped exception

InterpolationException

public InterpolationException(String message, String expression)

Parameters: message The general description of the problem expression The expression that triggered the problem

Method Detail

getExpression

public String getExpression()

Returns: The expression that triggered this exception.

Copyright © 2001-2009 Codehaus. All Rights Reserved.