Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class MaxQueryPaymentExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.hedera.hashgraph.sdk.MaxQueryPaymentExceededException
- All Implemented Interfaces:
Serializable
Signals that a query will cost more than a pre-configured maximum payment amount.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal HbarThe limit for a single automatic query payment, set byClient.setDefaultMaxQueryPayment(Hbar)(Hbar)} orQuery.setMaxQueryPayment(Hbar).final HbarThe cost of the query that was attempted as returned byQuery.getCost(Client). -
Constructor Summary
ConstructorsConstructorDescriptionMaxQueryPaymentExceededException(Query<?, ?> builder, Hbar cost, Hbar maxQueryPayment) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
queryCost
The cost of the query that was attempted as returned byQuery.getCost(Client). -
maxQueryPayment
The limit for a single automatic query payment, set byClient.setDefaultMaxQueryPayment(Hbar)(Hbar)} orQuery.setMaxQueryPayment(Hbar).
-
-
Constructor Details
-
MaxQueryPaymentExceededException
Constructor.- Parameters:
builder- the query builder objectcost- the query costmaxQueryPayment- the maximum query payment
-