docs: MaxQueryPaymentExceededException
package com.hedera.hashgraph.sdk;
+/**
+ * Signals that a query will cost more than a pre-configured maximum payment amount.
+ */
public final class MaxQueryPaymentExceededException extends RuntimeException {
/**
* The cost of the query that was attempted as returned by {@link QueryBuilder#getCost(Client)}.
@@ -14,8 +17,8 @@ public final class MaxQueryPaymentExceededException extends RuntimeException {
MaxQueryPaymentExceededException(QueryBuilder<?, ?> builder, Hbar cost, Hbar maxQueryPayment) {
super(String.format(
- "cost of %s (%s) without explicit payment is greater than "
- + "Client.maxQueryPayment (%s)",
+ "cost for %s, of %s, without explicit payment is greater than "
+ + "the maximum allowed payment of %s",
builder.getClass().getSimpleName(),
cost,
maxQueryPayment));
