fun getException(objectMapper: ObjectMapper): Optional<RPCRequestFailedException>
objectMapper - the objectmatter to deserialize the error with.
objectMapper
Return an exception if this represents an error RPC response, otherwise nothing