Class 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 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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String expression  
      private static long serialVersionUID  
    • 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 Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String buildMessage​(java.lang.String message, java.lang.String expression)  
      java.lang.String getExpression()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • expression

        private final java.lang.String expression
    • Constructor Detail

      • InterpolationException

        public InterpolationException​(java.lang.String message,
                                      java.lang.String expression,
                                      java.lang.Throwable cause)
        Parameters:
        message - The general description of the problem
        expression - The expression that triggered the problem
        cause - The wrapped exception
      • InterpolationException

        public InterpolationException​(java.lang.String message,
                                      java.lang.String expression)
        Parameters:
        message - The general description of the problem
        expression - The expression that triggered the problem
    • Method Detail

      • buildMessage

        private static java.lang.String buildMessage​(java.lang.String message,
                                                     java.lang.String expression)
      • getExpression

        public java.lang.String getExpression()
        Returns:
        The expression that triggered this exception.