+ } else if (result.getProofRequiredFailure() != null) {
+ final var failure = result.getProofRequiredFailure();
+ return String.format(
+ "CAPTCHA proof required for sending to \"%s\", available options \"%s\" with token \"%s\", or wait \"%d\" seconds",
+ result.getAddress().getLegacyIdentifier(),
+ failure.getOptions()
+ .stream()
+ .map(ProofRequiredException.Option::toString)
+ .collect(Collectors.joining(", ")),
+ failure.getToken(),
+ failure.getRetryAfterSeconds());