static String prettyPrintException(Throwable throwable) {
        if (throwable == null)
            return "Null exception.";
        if (throwable.getMessage() != null) {
            return throwable.getClass().getSimpleName() + ": " + throwable.getMessage();
        }
        return throwable.getClass().getSimpleName();
    }
Pretty-print an exception.

@param throwable     The exception.

@return              A compact human-readable string.
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java