tuweni / org.apache.tuweni.scuttlebutt.rpc / RPCMessage / getException

getException

fun getException(objectMapper: ObjectMapper): Optional<RPCRequestFailedException> (source)

Parameters

objectMapper - the objectmatter to deserialize the error with.

Return
an exception if this represents an error RPC response, otherwise nothing