title: Usage of exceptionExpression in Spring Retry
body: <p>According to documentation, I can use something like this in <code>exceptionExpression</code>: <code>@Retryable(exceptionExpression="message.contains('this can be retried')")</code></p>
  
  <p>But I want to get response body and check message inside it (from <code>RestClientResponseException</code>), something similar to this: <code>exceptionExpression = "getResponseBodyAsString().contains('important message')"</code></p>
  
  <p>I tried like that but it doesn't work. So, is it possible to do something similar and check info from responseBody?</p>
  
  <hr>
  
  <p>Edit: Adding whole <code>@Retryable</code> annotation parameters with Gary Russell's suggestion:</p>
  
  <p><code>@Retryable(value = HttpClientErrorException.class, exceptionExpression = "#{#root instanceof T(org.springframework.web.client.HttpClientErrorException) AND responseBodyAsString.contains('important message')}")</code></p>
  
  <p>I'm using actual <code>RestClientResponseException</code> subclass that I'm catching but is still not triggering retry.</p>