How to know that an exception has occurred when use zeebeclient in this way

How to know that an exception has occurred when use zeebeclient in this way
ZeebeFuture<WorkflowInstanceResult> result =zeebeClient.newCreateInstanceCommand().bpmnProcessId("abc").latestVersion().withResult().send();
If we don’t know that an exception has occurred, the request will be waiting