+ throw new IOErrorException("Failed to register: %s (%s)".formatted(e.getMessage(),
+ e.getClass().getSimpleName()), e);
+ } catch (VerificationMethodNotAvailableException e) {
+ throw new UserErrorException("Failed to register: " + e.getMessage() + (
+ voiceVerification
+ ? ": Before requesting voice verification you need to request SMS verification and wait a minute."
+ : ""
+ ), e);