code: public static void catchException(ThrowingCallable actor, Class<? extends Exception> clazz) {
          validateArguments(actor, clazz);
          catchException(actor, clazz, false);
      }
docs: Use it to catch an exception of a specific type and to get access to the
  thrown exception (for further verifications).
  
  In the following example you catch exceptions of type MyException that
  are thrown by obj.doX():
  <code>catchException(obj, MyException.class).doX(); // catch
  if (caughtException() != null) {
  assert "foobar".equals(caughtException().getMessage()); // further analysis
  }</code>
  If <code>doX()</code> throws a <code>MyException</code>, then
  {@link #caughtException()} will return the caught exception. If
  <code>doX()</code> does not throw a <code>MyException</code>, then
  {@link #caughtException()} will return <code>null</code>. If
  <code>doX()</code> throws an exception of another type, i.e. not a
  subclass but another class, then this exception is not thrown and
  {@link #caughtException()} will return <code>null</code>.
  
  
  @param actor The instance that shall be proxied. Must not be
  <code>null</code>.
  @param clazz The type of the exception that shall be caught. Must not be
  <code>null</code>.