Package com.swmansion.starknet.provider.exceptions
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
}
In the case of Request.sendAsync()
, an exception would have to be handled in the returned CompletableFuture
.
See: Description
-
Class Summary Class Description RequestFailedException Base exception for all provider errors. RpcRequestFailedException Exception thrown by rpc provider on request failure.