Package-level declarations
Exceptions thrown by the Starknet providers.
Request.send()
throws RequestFailedException
unchecked exception. It can optionally be handled.
Request<Felt> request = ...
// Send a request
try {
Felt response = request.send();
} catch (RequestFailedException e) {
// Handle an exception
}
Content copied to clipboard
In the case of Request.sendAsync()
, an exception would have to be handled in the returned CompletableFuture
.
Types
Link copied to clipboard
open class RequestFailedException(message: String = "Request failed", val data: String? = null, val payload: String) : RuntimeException
Base exception for all provider errors.
Link copied to clipboard
class RpcRequestFailedException(val code: Int, message: String, val data: String? = null, val payload: String) : RequestFailedException
Exception thrown by rpc provider on request failure.