|Re: [tycho-dev] InterpolationException thrown by StringSearchInterpolator?|
The main reason for using an exception was to let the caller of the interpolator decide what to do in case of a failure, but I do not have any use case for this in mind and the longer I think about it, the more I think it does not make much sense to continue anything in failure cases. So I think its fine to fail the build in case on an InterpolationException.
I have a question about the exception handling in the Interpolator class: as far as I can see, you have explicitly added an InterpolationException type which allows Tycho to ignore when an interpolation fails. Now my question is: Do you have a use case for this? I.e. are you aware of a situation in which these InterpolationExceptions are thrown and in which it is required that the build only warns but does not fail?
From what I can see in the StringSearchInterpolator tests , that class only ever throws exceptions in very obscure cases.
So, is it okay if I let the build fail in case of an InterpolationException . This makes things a little bit easier for me.
All the best