in alloydb-jdbc-connector/src/main/java/com/google/cloud/alloydb/DefaultConnectionInfoRepository.java [127:138]
private RuntimeException handleException(Exception e) {
Status status = Status.fromThrowable(e);
String message =
String.format(
"AlloyDB Admin API failed to return the connection info. Reason: %s", e.getMessage());
if (TERMINAL_STATUS_CODES.contains(status.getCode())) {
return new TerminalException(message, e);
}
return new RuntimeException(message, e);
}